We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

List of Cells from GridRangeInfo

Thread ID:

Created:

Updated:

Platform:

Replies:

70601 Dec 18,2007 02:50 PM UTC Dec 18,2007 04:43 PM UTC Windows Forms 1
loading
Tags: GridControl
Thomas Pang
Asked On December 18, 2007 02:50 PM UTC

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?


Administrator [Syncfusion]
Replied On 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);



CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;