I am using GDBG. When the user clicks on the header column, the grid sorts fine. after this action, when the user adds the new row by providing all the column information, and moving to next row, the sorting occurs dynamically and the grid is refreshed. how to aviod this auto sorting?
Thanks in advance.
Best Regards, Ram
ADAdministrator Syncfusion Team April 19, 2003 08:18 AM
I do not know of a simple way to do this.
The GridDataBoundGrid just displays the data as provided by the datasource. So, if you want the new row to be on bottom then you would have to provide a DataSource that has the row on bottom.
When you use the default sorting, the grid just displays the values in the sorted datatable.defaultview. When a new row is added to this defaultview, it is placed in its sorted position.
So, to avoid this auto sorting of the new rows, you would have to implement your own sorting that does not rely on the DataView Sort.