To disable column sorting, set the AllowSort property to False. This property can be set either in the designer or in code.
In the Designer
Locate the AllowSort property in the Properties window and set it to False.
In Code
Add the following code to the Form_Load event to set the AllowSort property to False.
Me.C1TrueDBGrid1.AllowSort = False
· C#
this.c1TrueDBGrid1.AllowSort = false;
· Delphi
Self.C1TrueDBGrid1.AllowSort := False;
This topic illustrates the following:
Clicking on the First column does not sort the column.
Send comments about this topic to ComponentOne. Copyright © ComponentOne LLC. All rights reserved. |