We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Getting # of Rows in a GridWeb

Hi!

I have a grid web element on a web page. When a user clicks on a column, I want to search through all that column for a certain cssclass. If the cell contains the class, I want to change the class of another cell in that row. I have the changing of the cell cssclass down, but I don’t know how to search through the column in the first place. To me, I need to first get the number of rows in the grid, but I don’t know the command for that. Does anyone know how to get that information?

Thanks!

Hi,

I think you may try to use WebCells.MaxRow attribute to get the farthest row index(zero based) which has data or style. Similarly WebCells.MaxColumn attribute can be used to get the maximum column index in the sheet which contains data or style.

Thank you.