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. Image for the cookie policy date

Curious Object Model

I'm curious: 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? Thanks Eric

1 Reply

AD Administrator Syncfusion Team August 12, 2003 05:10 AM UTC

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.

Loader.
Up arrow icon