Hello Igor (or Whomever it May Concern),
I am trying to select a contiguous range of cells programmatically and efficiently (eg. in Excel a range like B:5 to G:13550) from a "large" dataset in iGrid.NET. The grid is setup to use SelectionMode MultiExtended with RowMode disabled. I am currently looping through rows and cells to set cell "Selected" to True; however, this method is exceeding slow when there are many rows/cells to be selected. I know an internal method must exist for this since I can select the desired range quickly when done manually via mouse inputs – left-click to select the range's top left corner cell, use scrollbars to find the required range's bottom right corner cell, and shift+click to select the entire range between. Before I go down the rabbit hole of looking into the iGrid source code or maybe trying to programmatically scroll and simulate mouse clicks select a ranges, I was hoping you might have another solution.
Is there another way to select a range of cells or add the cell range to the Selected Cells Collection more efficiently? Sorry if this is already answered; it seams simple enough that I might not be the first to ask but I could not find it.
Your assistance is most appreciated!
Matthew
Edited by moderator
2023-05-12T14:46:05Z
|
Reason: Igor/10Tec added status [IMPLEMENTED]