GridGroupingControl and Sorting

Hello. I am using Syncfusion 4.101.0.58 with .NET framework v1.1. I am using a GridGroupingControl with target columns defined as sorted. The grid is editable, so the user is able to modify the data directly in the table input controls.

Currently, with the sorted columns, if the user changes a value in one of the sorted columns, the grid will actively re-sort the grid as soon as the changes are pushed through to the underlying data source. I would like to keep the grid from actively re-sorting until the user leaves the grid and is effectively "finished" making changes to the grid. The grid is being used in a data-entry application, and it is disruptive to have the grid constantly resorting as the user enters information.

I attempted to remove the sorted columns on the grid receiving focus, and then resorting after losing focus, but the records in the grid revert to the "unsorted" state when the grid receives focus.

Is there an event or property that can be used to effectively suppress the dynamic sorting until such time that sorting is permissible?

Thanks for any information you can provide.

3 Replies

HA haneefm Syncfusion Team July 25, 2007 09:45 PM UTC

Hi John,

The attached sample implements the ListWrapper class to avoid the 'jumps' while the user changes the value in a sorted column. It also support the multicolumn sorting in a grid. Please try this and let me know if this helps.

Here is a sample.
WrapperClassSortSample.zip

Best Regards,
Haneef


JO John July 26, 2007 12:42 PM UTC

Hi Haneef,

Thank you for your assistance. The sample does not seem to provide the desired functionality, unless I am overlooking something. While clicking the grid headers will actively re-sort the grid, and editing through the ListWrapper prevents the grid from jumping around, I have not observed the grid actively resort itself once editing is complete (i.e. the grid loses input focus). An attempted call to refresh the grid on the Leave event does not update the grid rows to reflect the new sort information.

Additionally, I am using a GridGroupingControl in my project. Will the ListWrapper port to work with the GridGroupingControl, or are the object/event models between the GridGroupingControl and GridDataBoundGrid too distinct?

Thanks for your continued assistance.

>Hi John,

The attached sample implements the ListWrapper class to avoid the 'jumps' while the user changes the value in a sorted column. It also support the multicolumn sorting in a grid. Please try this and let me know if this helps.

Here is a sample.
WrapperClassSortSample.zip

Best Regards,
Haneef


RA Rajagopal Syncfusion Team July 28, 2007 02:20 AM UTC

Hi John,

Thanks for your patience. We are looking into this thread and will keep you updated on this by Monday(July 30).

Thanks,
Rajagopal

Loader.
Up arrow icon