IUIAutomationGridPattern::CurrentRowCount Property

Retrieves the number of rows in the grid.


HRESULT IUIAutomationGridPattern::get_CurrentRowCount(int *retVal);


  • retVal
    The address of a variable that receives the count of rows. The default value is 0.

Return Value

Returns S_OK if successful, or an error value otherwise.


Hidden rows and columns, depending on the provider implementation, may be loaded in the Microsoft UI Automation tree and will therefore be reflected in the row count and column count properties. If the hidden rows and columns have not yet been loaded they are not counted.