BCGSoft.Controls.Grid Namespace > GridData Class : GetRowCount Method |
'Declaration Public Function GetRowCount() As Integer
public int GetRowCount()
public: int GetRowCount();
public: int GetRowCount();
In Group Mode the returned value includes number of group rows (group nodes). Note, that the "new row" is not grouped, therefore if AllowUserToAddRows is true or you have called AddNewRow, then the returned number of rows includes one additional row.
In Virtual Mode the returned value is equivalent to RowCount (must be set explicitly for Virtual Mode).
It's recommended to call this method instead of using the RowCollection.Count property.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2