We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridGroupingControl and Sorting

Thread ID:

Created:

Updated:

Platform:

Replies:

65244 Jul 25,2007 03:51 PM UTC Jul 28,2007 02:20 AM UTC Windows Forms 3
loading
Tags: GridControl
John
Asked On July 25, 2007 03:51 PM UTC

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.

haneefm [Syncfusion]
Replied On 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

John
Replied On 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

Rajagopal [Syncfusion]
Replied On 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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;