Datagrid sort
-
Hi I want to disable the sorting property of datagrid .I set the allowsorting property to false but still i am able to sort on clicking it How can i do it Thanks in advance
Regards DilipRam
If you have set allow sorting to false, I don't know how you are able to sort by clicking on column headings. Are you using VS 2003? I whipped up a quick example in 2003, set the AllowSorting property to False, and was unable to sort by clicking on column headings. I suggest that you make sure that the AllowSorting is in fact set to false, or that it is not set back to true in your code somewhere else.
-
If you have set allow sorting to false, I don't know how you are able to sort by clicking on column headings. Are you using VS 2003? I whipped up a quick example in 2003, set the AllowSorting property to False, and was unable to sort by clicking on column headings. I suggest that you make sure that the AllowSorting is in fact set to false, or that it is not set back to true in your code somewhere else.