I am using a data grid and has bound a data source with it.
I am trying to get the total number of records in the grid in overriden InitializePager method from pagedDataSource DataSourceCount.
I thought DataSourceCount returns number of records from SelectCountMethod of ObjectDataSource, but DataSourceCount is giving me the page size and not the total number of records, whereas when I debug and see in SelectCountMethod it is returning correct number of total Records.
I am not sure how to get the data from SelectCountMethod in DataGrid.