Change record on MSHFlexGrid

How do I change records in an MSHFlexGrid? I have an MSFlexGrid that is able to do this by this code:

If FlexGrid.MouseRow Then
    If FlexGrid.MouseCol Then
        SavedRow = FlexGrid.Row
        SavedCol = FlexGrid.Col
        txtEdit.Left = FlexGrid.CellLeft
        txtEdit.Top = FlexGrid.CellTop
        txtEdit.width = FlexGrid.CellWidth
        txtEdit.height = FlexGrid.CellHeight
        txtEdit.Text = FlexGrid.Text
        txtEdit.SelLength = Len(txtEdit.Text)
        txtEdit.Visible = True
        txtEdit.SetFocus
    End If
Else
    If FlexGrid.Tag = CStr(FlexGrid.Col) Then
        'FlexGrid.Sort = flexSortStringNoCaseDescending
        FlexGrid.Tag = vbNullString
        SortBy FlexGrid.TextMatrix(0, FlexGrid.Col), True
    Else
        'FlexGrid.Sort = flexSortStringNoCaseAscending
        FlexGrid.Tag = FlexGrid.Col
        SortBy FlexGrid.TextMatrix(0, FlexGrid.Col), False
    End If
End If


But that code doesn't work on my MSHFlexGrid
Takamine334Asked:
Who is Participating?
 
SethiConnect With a Mentor Commented:
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.