Results 1 to 2 of 2

Thread: Editing fixed columns or rows in MSFlexgrid

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2000
    Location
    treehouse
    Posts
    106
    I am trying to give the user the option to edit the fixed columns or rows based on if they click on a col. or row they want to change. I am unable to get it to work. does anyone have any ideas. I am trying to load a form that lets the user type in a new name for a column or row and save it and update it. Below is the code I tried and cannot find the column or row the user clicks on.


    Private Sub MSFlexGrid1_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
    Dim iRow As Integer
    Dim iColumn As Integer
    With MSFlexGrid1
    iRow = .MouseRow
    iColumn = .MouseCol
    If .TextMatrix(iRow, iColumn) = "Header1" Then
    frmEditCell.txtInput = .TextMatrix(.MouseRow, .MouseCol)
    frmEditCell.Show
    End If
    End With
    End Sub

  2. #2
    Lively Member
    Join Date
    Jul 2000
    Location
    Sydney, Australia
    Posts
    74
    if the flex grid is called fgTemp

    fgTemp.Row = the active row (ie the last row the user selected)

    fgTemp.Col = the active col

    these properties can also be set in code if needed

    private sub fgTemp_Click()
    if blnEditRow then
    call editRow(fgTemp.Row)
    else
    call editCol(fgTemp.Col)
    end if
    end sub

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