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.

BindingSource and Grid Grouping Control

Thread ID:

Created:

Updated:

Platform:

Replies:

39942 Jan 20,2006 05:13 PM Jan 26,2006 03:40 PM Windows Forms 3
loading
Tags: Grouping
Ken
Asked On January 20, 2006 05:13 PM

Hi I set GridGroupControl.dataSource to a bindingSource. When I do sort on the table and use bindingSource.moveNext or bindingSource.movePrevious, it does not behave as MS DataGridView which just move the selected row to up/down based on next/previous. Is this a bug I should submit an inccident. Thanks

Administrator [Syncfusion]
Replied On January 20, 2006 11:20 PM

Hi Ken, when you do the sorting you do the sorting on the TableDescriptor, correct? In that case the records are sorted inside the GridGroupingControl and the original underlying datasource is not sorted. Therefore when you then navigate in the underlying datasource the navigation will still be in the old sort order. You should then navigate through grid.Table.SortedRecords insteads. You can also instruct the engine to pass on sorting to the underlying dataview Engine.AllowedOptimizations = EngineOptimizations.PassThroughSort; Stefan > >Hi > >I set GridGroupControl.dataSource to a bindingSource. When I do sort on >the table and use bindingSource.moveNext >or bindingSource.movePrevious, >it does not behave as MS DataGridView >which just move the selected row >to up/down based on next/previous. > >Is this a bug I should submit an inccident. > >Thanks

Ken
Replied On January 25, 2006 06:59 PM

hi, First, grid.Table does not have sortedrecord. Second, set Engine.AllowedOptimizations = EngineOptimizations.PassThroughSort does not not either. I did put the above line during the form_load, right before the bindingSource1.moveNext and bindingSource1.moveNext. Still it does not work. Any better solution. >Hi Ken, > >when you do the sorting you do the sorting on the TableDescriptor, correct? > >In that case the records are sorted inside the GridGroupingControl and the original underlying datasource is not sorted. Therefore when you then navigate in the underlying datasource the navigation will still be in the old sort order. You should then navigate through grid.Table.SortedRecords insteads. > >You can also instruct the engine to pass on sorting to the underlying dataview > >Engine.AllowedOptimizations = EngineOptimizations.PassThroughSort; > >Stefan > > >> >>Hi >> >>I set GridGroupControl.dataSource to a bindingSource. When I do sort on >>the table and use bindingSource.moveNext >>or bindingSource.movePrevious, >>it does not behave as MS DataGridView >>which just move the selected row >>to up/down based on next/previous. >> >>Is this a bug I should submit an inccident. >> >>Thanks

Administrator [Syncfusion]
Replied On January 26, 2006 03:40 PM

Ken, Sorry - I mean FilteredRecords, not SortedRecords. Attached find an example. You can also comment out the lines in the Form1 ctor. Then you see PassThrough mode in action. ggcbindingsource.zip Stefan

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.

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.

;