NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DataGrid.VisibleRowCount

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;

Property Value

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.

Remarks

The number of visible rows can be changed at run time if the user is allowed to resize the DataGrid control.

Example [Visual Basic]

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

See Also

DataGrid Class | DataGrid Members | System.WinForms Namespace | RowHeadersVisible | VisibleColumnCount