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
65
Sorting webGrid when adding a new row
posted

Hi,

I have a webGrid which is sorted by column.

But when I'm adding a new row to the grid, it is not getting sorted again with the new row:

 

 

this.WGrid_PROD.DisplayLayout.AllowSortingDefault = Infragistics.WebUI.UltraWebGrid.AllowSorting.Yes;

this

 

.WGrid_PROD.Columns[0].SortIndicator = SortIndicator.Ascending;

this

 

.WGrid_PROD.Bands[0].SortedColumns.Add(this.WGrid_PROD.Columns[0]);

Same issue with merging rows.

How can I cause the grid to get sorted after adding new row?

 

Please advice

Thanks

Maya