Gets the number of rows visible.
[Visual Basic] Public ReadOnly Property VisibleRowCount As Integer [C#] public int VisibleRowCount {get;} [C++] public: __property int get_VisibleRowCount(); [JScript] public function get VisibleRowCount() : int;
The number of rows visible in the view port. The viewport is the rectangular area through which the grid is visible. The viewport's size depends on the size of the DataGrid control; if you allow users to resize the control, the viewport will also be affected.
The number of visible rows can be changed at run time if the user is allowed to resize the DataGrid control.
The following example returns the number of rows visible in a DataGrid control.
[Visual Basic]
Private Function ReturnVisibleRows(ByVal myGrid As DataGrid)As Integer ReturnVisibleRows = myGrid.VisibleRowCount End Function
DataGrid Class | DataGrid Members | System.WinForms Namespace | RowHeadersVisible | VisibleColumnCount