Results 1 to 2 of 2

Thread: datagrid sort

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2002
    Location
    London
    Posts
    678

    datagrid sort

    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

  2. #2
    Lively Member
    Join Date
    Nov 2000
    Posts
    73
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width