How to count no of rows in DataGrid at runtime

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Shailja
    New Member
    • Feb 2007
    • 123

    How to count no of rows in DataGrid at runtime

    Can anyone tell me how to count no of rows into DataGrid at runtime after entering data into it?
  • vijaydiwakar
    Contributor
    • Feb 2007
    • 579

    #2
    Originally posted by Shailja
    Can anyone tell me how to count no of rows into DataGrid at runtime after entering data into it?
    for that u have to use grd.rows

    Comment

    • cmrhema
      Contributor
      • Jan 2007
      • 375

      #3
      Originally posted by vijaydiwakar
      for that u have to use grd.rows
      msgbox datagrid1.Visib leRows

      This should give you the answer
      But if there are no values in your grid in that case it shows the answer as 1

      Comment

      Working...