Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2167
Problem with binding data after sorting grid
posted

I have a ultrwebgrid which I bind data to from a postback.  After the grid is loaded I perform a sort on one of the columns and then perform another postback to load the grid again and receive a NullReferece Exception from Infragistics.WebUI.UltraWebGrid.RowsCollection Sort()

I tried using the .ResetColumns() method in the _InitializeDataSource event however even though I have records in my dataset, it seems to bind to the grid(based on the events that are fired), it's empty. 

If I then perform an additional postback, the data is loaded into the grid.