Results 1 to 3 of 3

Thread: Select cell in Flexgrid[RESOLVED]

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2004
    Posts
    82

    Select cell in Flexgrid[RESOLVED]

    Firstly, this is my first time using the Flexgrid.

    But anyway, here's what I need to do: I need to select a cell in the Flexgrid, but if it's not visible it will scroll down until it's visible.(I'm searching the grid... FYI)
    Code:
        Dim i As Integer
        For i = 0 To fgMOB.Rows - 1
            If LCase(Text1.Text) = LCase(fgMOB.TextMatrix(i, 1)) Then
                'select the cell
            End If
        Next i
    Any help? Thanks.
    Last edited by NickMeuir; Apr 12th, 2004 at 11:53 AM.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Unless I'm missing some vital piece of information, I don't believe there is a way to scroll down to the selected cell.

  3. #3
    Hyperactive Member aks_1610's Avatar
    Join Date
    Sep 2002
    Location
    Pune, India
    Posts
    280
    hi,
    here is the code:

    VB Code:
    1. Dim i As Integer
    2.     For i = 0 To fgMOB.Rows - 1
    3.         If LCase(Text1.Text) = LCase(fgMOB.TextMatrix(i, 1)) Then
    4.                With fgMOB
    5.                      .Col = 0
    6.                      .RowSel = i
    7.                      .ColSel = '<number of columns in the Grid>
    8.                      .TopRow=i
    9.                  End With
    10.         End If
    11.     Next i
    Last edited by aks_1610; Apr 12th, 2004 at 12:42 AM.
    A man with nothing to live for has everything to fight for...

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