• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 350
  • Last Modified:

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
0
Takamine334
Asked:
Takamine334
1 Solution
 
SethiCommented:
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now