|
-
Apr 11th, 2004, 10:05 PM
#1
Thread Starter
Lively Member
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.
-
Apr 12th, 2004, 12:29 AM
#2
Unless I'm missing some vital piece of information, I don't believe there is a way to scroll down to the selected cell.
-
Apr 12th, 2004, 12:36 AM
#3
Hyperactive Member
hi,
here is the code:
VB Code:
Dim i As Integer
For i = 0 To fgMOB.Rows - 1
If LCase(Text1.Text) = LCase(fgMOB.TextMatrix(i, 1)) Then
With fgMOB
.Col = 0
.RowSel = i
.ColSel = '<number of columns in the Grid>
.TopRow=i
End With
End If
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|