Sorting FlexGrid

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MaryJolly
    New Member
    • Aug 2008
    • 3

    Sorting FlexGrid

    How can I sort the contents in an MSFlexGrid in VB6 using the sort property at run time.
  • QVeen72
    Recognized Expert Top Contributor
    • Oct 2006
    • 1445

    #2
    Hi,

    Write this code in Grid's Click event:

    [code=vb]
    If Grd.Row = 1 And Grd.Col > 0 Then
    Grd.Sort = 1
    End If
    [/code]

    Click on any of the Fixed Column (at top) This allows you to Sort the selected Column.

    Regards
    Veena

    Comment

    Working...