P
Per Salmi
We are working on a problem related to a control to use for paging in combination
with either DataGrid controls or PagedDataSource objects used as datasources
for other controls like Repeaters or DataLists.
What is the best way to make our paging control get access to the properties
like CurrentPageIndex and PageCount? And still support both DataGrid and
PagedDataSource?
A DataGrid or DataGrid.DataSource property can not be casted into a PagedDataSource...
Should we use reflection to check for properties like CurrentPageIndex and
PageCount in a generic object passed into my control as a property?
Best regards,
Per Salmi
with either DataGrid controls or PagedDataSource objects used as datasources
for other controls like Repeaters or DataLists.
What is the best way to make our paging control get access to the properties
like CurrentPageIndex and PageCount? And still support both DataGrid and
PagedDataSource?
A DataGrid or DataGrid.DataSource property can not be casted into a PagedDataSource...
Should we use reflection to check for properties like CurrentPageIndex and
PageCount in a generic object passed into my control as a property?
Best regards,
Per Salmi