Bind just first row of datasource
I have a gridview which must have a reliable fixed header. So, I've given up with css solutions that do not work cross browser and am using 2 Gridviews. The top one will just show the column names and the bottom will show the data contained within a scrollable div.
So, I have a datasource which is a datatable.
Is there a way I can bind the top Gridview so I only bind the first row in the DataTable to it?
Re: Bind just first row of datasource
Quote:
Originally Posted by
Webskater
Is there a way I can bind the top Gridview so I only bind the first row in the DataTable to it?
You can select only your first column in the db or use SqlCommand.ExecuteScalar in code
Re: Bind just first row of datasource
Hello,
Is this for a personal project, or do you have some funding behind you?
There are a number of third party components that handle this very nicely for you, but obviously there is a price involved.
Gary