Results 1 to 3 of 3

Thread: Getting rows and columns in flexgrid

  1. #1

    Thread Starter
    Addicted Member CoMMiE's Avatar
    Join Date
    Jul 2000
    Location
    Malaysia, Kuala Lumpur
    Posts
    179

    Question

    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


  2. #2
    Guest
    Hello there,

    Try something like this
    Code:
    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,

  3. #3

    Thread Starter
    Addicted Member CoMMiE's Avatar
    Join Date
    Jul 2000
    Location
    Malaysia, Kuala Lumpur
    Posts
    179
    Thanks for the help RvA
    That code really helps

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