I just went through the Wingrid performance guide. I have following query:
Would it be a good idea to use GetCellValue to access ActiveCell's value OR the Value property should be used?
Also, Are there any other useful articles(likes of Wingrid Performance Guide), which provides the general guidelines?
imadiamond2016 said:Would it be a good idea to use GetCellValue to access ActiveCell's value OR the Value property should be used?
Good question. The point of using GetCellValue instead of cell.Value is to avoid unnecessarily creating the UltraGridCell object. In the case of the ActiveCell, you can go ahead and use the Value property and it doesn't matter because the cell has to be created in order for it to be the ActiveCell in the first place.
imadiamond2016 said:Also, Are there any other useful articles(likes of Wingrid Performance Guide), which provides the general guidelines?
I'm not aware of any other documents like this one. There are lots of How-To's in the online help and samples.
Thanks for the quick response Mike.
And what about SelectedCells, Are the selected cells also get created as soon as they are selected?
I'm not 100% sure, but I think they probably are. It may depend on they were selected. If the user selected them, then yes, they must have been created. If the user selected a column, then I am not sure if all of the cells in the column are created at that point.