You can specify the header template dynamically, just declare the datagrid, and call the header template, and apply it as you see fit. This way you control it, not the grid.
To put a scrollbar in, you need to use a div. The div will contain the datagrid. The div should have autoflow of "auto" and a pre-set height. This way, if it is below the height of the div, no scrollbar will be shown. However, if it is larger, then it will scroll, but ONLY in the div.
<div style="autoflow:auto;height:300px;">
<asp:DataGrid..... />
</div>
As for the user information, you need to select the information from the database, based upon the username. Such ways are:
SELECT * FROM Users WHERE UserName=THEUSERNAME
Then you can grab the info you need.
If you need further help, just respond with what you need.
SheSaidImaPregy
Veteran Poster
1,080 posts since Sep 2007
Reputation Points: 43
Solved Threads: 68
change the div's overflow to scroll:
overflow:scroll;
And unfortunately I am not familiar with asp.net membership. So I cannot help you in that aspect. Sorry.
SheSaidImaPregy
Veteran Poster
1,080 posts since Sep 2007
Reputation Points: 43
Solved Threads: 68
create your own login page? Quite simple. Gather the person's info (username, pass) from texboxes, run a query against the database searching for:
SELECT userpassword FROM users WHERE username=@username
commandname.Parameters.AddWithValue("@username", Trim(username.text))
Then after you receive the password, do a string compare:
string.compare(password, Trim(password.text), false)
If that equals 0, then it passes. Otherwise it failed and it is not the right password.
For your scrollbar issue, this works in most IE and MOZilla, you'll have to test the rest:
SheSaidImaPregy
Veteran Poster
1,080 posts since Sep 2007
Reputation Points: 43
Solved Threads: 68