PDA

Click to See Complete Forum and Search --> : datagrid sort


fmardani
May 13th, 2003, 03:49 PM
I am using a datagrid which has allowsorting checked.
The column names are bound columns
Why is it that when hovering over the column names, nothing happens (i.e. there is no link or hand type cursor) and therefore the sorting does not work?
Thanks

krigans
May 13th, 2003, 10:10 PM
For Hover to come you need to set "sorting expression" i.e in

1] datagrid|property builder
2] select columns from the left hand side pane
3] select ur bound column which u want to sort and set sort expression normally it is the database field
4] you get the hover
5] But still this will not sort your grid, for this u need to check the sorting expression
i.e in datagrid select sortcommand event and check what sort expression you got accordingly rebuild the query and then rebind it.

Hope this solve's ur problem