Datagrid AllowSorting property

  • Thread starter Thread starter Carl Tribble
  • Start date Start date
C

Carl Tribble

I want to prevent my user from clicking on a column header and sorting the
items in my datagrid. I have tried setting the AllowSorting property to
false both in the property pages and in code (in the Form.Load event) but
still, when program runs user can click column header and list re-sorts!!

Thanks,
-Carl
 
Hi,

If you add a tablestyle to your grid set the tablestyles
allowsorting to false.

http://msdn.microsoft.com/library/d...sdatagridtablestyleclassallowsortingtopic.asp

Ken
--------------------
I want to prevent my user from clicking on a column header and sorting the
items in my datagrid. I have tried setting the AllowSorting property to
false both in the property pages and in code (in the Form.Load event) but
still, when program runs user can click column header and list re-sorts!!

Thanks,
-Carl
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top