DataGrid Sort
I have a problem getting the sort to work in datagrids.
In the properties window I have selected "Allow sort" to true.
I have also tried writing .Allow Sort = True into the code.
Help says Allow Sort should provide a small triangle in the header to indicate the direction of the sort. Click to toggle the direction.
The DataGrid displays as intended but I don't get the triangle and I can't sort.
What have I missed?
I know it will be something obvious (to everyone else).
Thanks
I am learning (slowly)
The original problem was with a DataGrid bound to a DataGridTable.
I have now bound the DataGrid to a plain DataTable and, hooray, I now have the sort facility working OK.
However I now can't change the width of the columns.
It appears I can sort with a DataTable OR set column width with DataGridTable. I don't understand why yet!
Chris
|