Articles in this section

How can we get the total number of rows and columns in OlapGrid control

We can able to get the amount of rows or columns in Engine of OlapGrid Control by using “RowCount” and “TableColumns.Count”.

Please refer the below code snippet.

C#

if (this.olapGrid1.InternalGrid.Engine == null)
{
      //Data is not present in the OlapGrid
}
else
{
      //Data is present in the OlapGrid
      int Count = this.olapGrid1.InternalGrid.Engine.RowsCount;
      int ColumCount = this.olapGrid1.InternalGrid.Engine.TableColumns.Count;
}
Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied