grdMyGrid.DataSource = myDataTable
grdMyGrid.DataBind()
For the first time it works fine.
[Record count: 18]
[Paging Size: 10]
[Pager Display as : 1 2 ]
Then I change the default contents of the 'myDataTable' data table and add more records to the 'myDataTable' data table.
Then I re-call above code to bind that new data table.
Thats also working fine. When there are record count more than pager size, It adds those page numbers to the pager(Page moving segment of grid).
[Record count: 38]
[Paging Size: 10]
[Pager Display as : 1 2 3 4 ]
Again I'm changing the contents of the 'myDataTable' data table and remove many records to the 'myDataTable' data table
Then I re-call above code to bind that new data table.
In this case, it do not hide the additional page numbers.
[Record count: 08]
[Paging Size: 10]
[Pager SHOULD Display as : 1 ]
BUT Display it display As :
[Pager Display as : 1 2 3 4 ]
What would be the issue?
Ur support is highly appreciated.