|
-
Jun 26th, 2003, 03:28 AM
#1
Thread Starter
Hyperactive Member
Datagrid Headers
Hello Everybody,
I have a search screen which displays search results in a Datagrid. When I scroll down the datagrid, header of datagrid also moves up and I cannot refer what an item in a row referrs to. I want to keep the header at fixed position and scroll only the records.
How can i do this?
Thanks in advance,
abhid
-
Jun 26th, 2003, 10:59 AM
#2
PowerPoster
There are only two options that I can think of. First, you could do some javascript trick. I am not that good with javascript, but I am positive it can be done.
The next way is to make your page a framed page. In the top frame, you have everything that sits above the search results (like the header of the page, and a header of the grid). Then in the bottom you have a header-less grid displaying the results. The user can scroll the bottom window, but the top stays put, and that is what holds the header for the grid.
Both of these are kind of a hack way to do it.
Just thought of another way to do it as I was typing. You could possibly take your dataset that you are binding to the data grid and insert a record every nth place that has the header information in it. You could use a template column and call a function that would format that row based on whether it is a header type column or just a regular search result. This seems like it would be the easiest of the three, but still requires work.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|