Home Forums WinForms controls Xceed Grid for WinForms disable sorting Reply To: disable sorting

Xceed Support
Member
Post count: 5658

Hi Marcus,

All depends on where it is located. By default, the ColumnManagerRow is the second row in the grid’s collection of FixedHeaderRows so it could be accessed in the following manner:

( ( ColumnManagerRow )grid.FixedHeaderRows[ 1 ] ).AllowSort = False

Of course, you should first check if the type of the second row is actually a ColumnManagerRow 😉

If you are using the designer, you could also simply access the object directly. By default, its name is columnManagerRow1.

I hope this helps.

Imported from legacy forums. Posted by Jenny [Xceed] (had 364 views)