The RowCount property returns the total number of rows in the data grid control.
Not available at design-time. Read-only at run-time.
object.RowCount as Integer
For more information about looping through the columns of a DataGrid refer to the Count property topic.
The following example loops through all the cells in a datagrid (vbscript): 'Obtain maximum row and column count for the grid intDataGridRowCount = App.ActiveForm.Controls(gridIndex).Rowcount intDataGridColumnCount = App.ActiveForm.Controls(gridIndex).Columns.Count
'Loop through each cell on each row For intDataGridRowIndex = 0 to intDataGridRowCount -1 For intDataGridColumnIndex = 0 to intDataGridColumnCount -1 strDataGridCellText = App.ActiveForm.Controls(gridIndex).Cells(IntDataGridRowIndex, IntDataGridColumnIndex).Text next inDataGridColumnIndex = 0 next |
Cell property | ColIndex property | RowIndex property | HeadRows property | Marker property | ColCount property | Count property
© 2004-2021 looksoftware. All rights reserved.