Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2004
    Posts
    53

    Unanswered: FlexGrid Sorting

    Hi,

    Is it possible for me to set up sorting in a flex grid as it can be done in a program like Excel. (I want to provide an interface for sorting data in a flexgrid) This would be very helpful to me. I am open to any ideas, suggestions, third party code (preferrably free) ha!


    Thanks
    Jason

  2. #2
    Join Date
    Feb 2003
    Posts
    15
    I think that this solve your question


    Private Sub Grid1_MouseUp(Button As Integer, Shift As Integer, x As Single, y As Single)
    If y < 225 Then
    If ord = 1 Then
    Grid1.Sort = flexSortStringAscending
    ord = 2
    Else
    Grid1.Sort = flexSortStringDescending
    ord = 1
    End If
    Grid1.Refresh
    End If
    End Sub

  3. #3
    Join Date
    Jan 2004
    Posts
    53
    jomafemar,

    What does the variable "ord" reference?

    Thanks
    Jason

  4. #4
    Join Date
    Feb 2003
    Posts
    15
    just a var, to help you swap from ascend to descend or vice versa

Posting Permissions

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