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.

Turning off sorting

Thread ID:

Created:

Updated:

Platform:

Replies:

22166 Dec 6,2004 02:21 AM Mar 7,2005 09:25 AM Windows Forms 8
loading
Tags: Grouping
Jason Southgate
Asked On December 6, 2004 02:21 AM

Hi, Do you know any way to turn off sorting, i.e. clicking the column headers? Thanks. Jason Southgate.

Administrator [Syncfusion]
Replied On December 6, 2004 05:35 AM

Try setting: this.grid.TableOptions.AllowSortColumns = false;

Jason Southgate
Replied On December 6, 2004 09:44 AM

Thanks Clay, Perfect. Jason.

Administrator [Syncfusion]
Replied On February 2, 2005 06:50 PM

Clay, Is there any way to turn off an already existing sorting and also which is already sorted. For example, if I have a sequence column, and it is sorted ascending/descending, when I want to update this column(all rows from top to bottom, but in a different order), I don''t want the rows moving around, while I am updating each and every row. So, I want to turn the sorting off, before updating. Help me! Thanks, Bits.

Administrator [Syncfusion]
Replied On February 3, 2005 06:20 AM

Hi Bits, The records always have to be in the exact sort order specified by the sorting criteria. Otherwise the engine will get confused about the position of records since it assumes that records are sorted in the sort order specified. If you have lots of updates and do not want records to be rearranged while the updates are coming in you can set grid.Table.TableDirty = true; When you set TableDirty = true no further updates will be handled until you access records in the engine or redraw the grid. However, you should also then avoid accessing records through the engine.Table.Records collection. Instead you should modify the underlying dataset directly. Stefan >Clay, > >Is there any way to turn off an already existing sorting and also which is already sorted. > >For example, if I have a sequence column, and it is sorted ascending/descending, when I want to update this column(all rows from top to bottom, but in a different order), I don''t want the rows moving around, while I am updating each and every row. So, I want to turn the sorting off, before updating. > >Help me! > >Thanks, >Bits.

Administrator [Syncfusion]
Replied On February 3, 2005 07:57 AM

What is the equivalent of gird.table.tabledirty = true in GDBG.

Administrator [Syncfusion]
Replied On February 3, 2005 11:17 AM

SuspendBinding, ResumeBinding and then Refresh(). Stefan

DavidBosak@venturipartners.com
Replied On March 7, 2005 04:33 AM

Hi Expert, I am using GridDataBoundGrid. I try to turn off the sorting but I can not do it. Please help me!. I can not see the property ''TableOptions.AllowSortColumns'' in GridDataboundGrid. Thanks, Len. >Try setting: > >this.grid.TableOptions.AllowSortColumns = false; >

Administrator [Syncfusion]
Replied On March 7, 2005 09:25 AM

In GridDataBoundGrid, try: this.gridDataBoundGrid1.SortBehavior = = GridSortBehavior.None;

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.

;