[SOLVED] AllowUserToOrderColumns always true

Answered
0
0

Hi,

if I set AllowUserToOrderColumns = False property of a datagridview

clicking the header the sorting is still active

regards

Crisitan Zerbinati

  • You must to post comments
Best Answer
1
1

Hi Cristian,

I think you probably misunderstood that property.
It´s about changing the positions of your columns, i.e.
after setting AllowUserToOrderColumns = False they cannot drag on the column header to reposition them.

If you want to enable/disable the sorting of one or more columns please check
the SortMode property of your columns.

Hope that helps.

Best regards
Frank

  • You must to post comments
0
0

Yes Frank, you are right!

It really was my oversight

Thank you

Cristian

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.