PDA

Click to See Complete Forum and Search --> : Getting rows and columns in flexgrid


CoMMiE
Sep 18th, 2000, 10:52 PM
Hi all
is there a way for me to get the row the col of the flexgrid everytime i load the program?

i need to do this because the size of the flexgrid changes acording to the user query

Thanks in advance

Sep 18th, 2000, 11:03 PM
Hello there,

Try something like this

Private Sub Form_Load()

Dim iCol As Integer, iRow As Integer

iCol = MSFlexGrid1.Cols
iRow = MSFlexGrid1.Rows

MsgBox iCol & " " & iRow

End Sub


Hope this helps,

CoMMiE
Sep 19th, 2000, 12:55 AM
Thanks for the help RvA
That code really helps :)