Hello,
I have an ASP.NET standard GridView bound to an AspDataSource. I want to retrieve the total row count from the data source. This is not available from the grid, since I have paging enabled. Also, I would rather not have to execute a second query just to get the count.
I thought about handling the AspDataSource.OnDataBinding event, but none of the event handlers seem to be firing for AspDataSource.
Can I get access to the data directly somehow? When inspecting, I noticed an AspDataSourceView object. What is this, and can I get to it?
Additionally, if you have any better information and/or samples of using DevForce in ASP.NET apps, that would be great. The one sample using AspDataSource is pretty bare.
Thanks in advance,
-Kevin