Why does the grid.CurrentCell property not return the same reference as grids indexer.
Seems like in nearly every event, I've got to reference grid[grid.CurrentCell.RowIndex, grid.CurrentCell.ColIndex]
I can easly get around this by inheriting the grid, and making my own CurrentCell2 property, or something, but I was curious as to why there's a difference to begin with?
ADAdministrator Syncfusion Team August 12, 2003 12:10 AM
There can only be one CurrentCell.
What value do you associate with it?
The 'old' style which you reference above, or the 'new' value that might be actively being edited in the CurrentCell.Renderer. In a lot of events, it is CurrentCell.Renderer.ControlText that is of interest, and not grid[grid.CurrentCell.RowIndex, grid.CurrentCell.ColIndex]. Keeping a clear division between these values seems reasonable.