A
AG
ASP.NET 2.0, VS 2005
I have a gridview with paging enabled, bound to an objectdatasource.
Both were dropped on to the page and configured via the wizards.
Basically working as expected.
The gridview's databind method is apparently called when the page is loaded
as I have no code calling the databind method.
How can I keep the gridview from databinding automatically and control it
myself?
For instance, it does not need to databind on a postback.
Regarding paging. How can I determine what page a particular record is on in
order to display that page and select the desired row?
TIA
I have a gridview with paging enabled, bound to an objectdatasource.
Both were dropped on to the page and configured via the wizards.
Basically working as expected.
The gridview's databind method is apparently called when the page is loaded
as I have no code calling the databind method.
How can I keep the gridview from databinding automatically and control it
myself?
For instance, it does not need to databind on a postback.
Regarding paging. How can I determine what page a particular record is on in
order to display that page and select the desired row?
TIA