I am using the grid to dispaly different photo albums. When the ComboBox album selector changes and with ViewState of the Grid enabled, the handler for the OnSelectedIndexChanged event for the ComboBox calls the Rebind() method of the grid to force the grid to rebind which eventually results in the OnNeedDataSource being called to allow the data source for the grid to be updated.
It appears that the Grid.CurrentPageIndex is not being reset to zero when the Grid is rebound. So if this index was anything other than 0 when the Rebind() method was called, an attempt to load the grid with the page index of the previous state of the grid will result.
Since ViewState is enabled, an argument could be made that the CurrentPageIndex is just being persisted due to the persistence resulting from ViewState. But is there really ever a valid case where the paging index should be anything other than 0 after the Grid is rebound.
To me new data implies a new state with indexes reset to zero. If for some reason someone wants an index other than zero when the grid rebinds, then it would seem to be up to them to set the index to whatever they wanted.
I have a feeling that this is not going to go my way. No big deal, this is a very, very good product.
It appears that the Grid.CurrentPageIndex is not being reset to zero when the Grid is rebound. So if this index was anything other than 0 when the Rebind() method was called, an attempt to load the grid with the page index of the previous state of the grid will result.
Since ViewState is enabled, an argument could be made that the CurrentPageIndex is just being persisted due to the persistence resulting from ViewState. But is there really ever a valid case where the paging index should be anything other than 0 after the Grid is rebound.
To me new data implies a new state with indexes reset to zero. If for some reason someone wants an index other than zero when the grid rebinds, then it would seem to be up to them to set the index to whatever they wanted.
I have a feeling that this is not going to go my way. No big deal, this is a very, very good product.