The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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
ADAdministrator 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.