GDBG updating issue

I am modifying the underlying data in the grid control. This will cause the data to change the row ordering. I have tried everything from refresh to refreshrange. Is there a way to reforce this to paint correctly?

3 Replies

AD Administrator Syncfusion Team March 3, 2006 05:00 PM UTC

Hi Chuck, This happens, because the data table always maintain a sort order. So, if there is any reordering of a row, the respective column only gets changed. To avoid these, You have add an additional column to the datatable that holds a sortKey which maintains the sort order. You can hide this column. When you initially set the DataSource to the grid, you sort the datatable on this column using its defaultview.sort property. Please try this sample, i hope it will give some idea to solve the issue. Let us know if this helps. Best Regards, Madhan.


AD Administrator Syncfusion Team March 3, 2006 05:16 PM UTC

Maybe you misunderstood. I already have a column that I sort on (it is not displayed). I am making changes to the underlying data so that the display needs to be updated. However when I make the changes the display does not get updated until I physically click on another row. I have tried using refresh and refresh range and nothing seems to take effect accept clicking on a new row.


AD Administrator Syncfusion Team March 5, 2006 06:05 AM UTC

Hi Chuck, Thanks for providing details and please provide us some more details, what version of grid are you using? What type of datasource?. As in our case i using a datatable biding. When i make any changes in the underlying datasource, the grid is updating properly. If possible update us a sample or modify any broswer accordingly to reproduce the issue here. Best Regards, Madhan.

Loader.
Up arrow icon