List of Cells from GridRangeInfo

Hello, I have a GridRangeInfo object. How can extract the list of cells that make up the range cleanly? I have tried GetFirstCell and GetNextCell. This kinda works fine except in the case of a row/column selection, GetNextCell seems to ignore rolcount and colcount. Is there a utility or do I have to calculate the cells manually?


1 Reply

AD Administrator Syncfusion Team December 18, 2007 04:43 PM UTC

Before trying to use GetFirstCell/GetNextCell, you can ensure these methods will work by making the range object a cell range. To do this, try this code:


//coverts an arbitary range to a cell range.

range = range.ExpandRange(1,1,gridControl1.RowCount,gridControl1.ColCount);



Loader.
Up arrow icon