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.
how can i get the current state of the checkbox when it is clicked? CurrentCell.Renderer.CurrentValue does not get updated on the second click.
i.e.
clicking on a checkbox first time and looking at the CurrentCell.Renderer.CurrentValue returns the correct value, now clicking on it the second time and the CurrentCell.Renderer.CurrentValue still retains the first change value
Is a bug, design? and how can i make this work?
this is getting very frusterating trying to figure out at what is going on behind the scenes, even with source code. Does syncfusion have logic flow chart of what goes on for common grid tasks (the order of events, updates etc for changing cells, updating datasource etc,)
ADAdministrator Syncfusion Team April 10, 2004 05:18 PM UTC
The checkbox is special in that it immediately saves the changed value to the grid itself with each change. So, in CurrentCellChanged, you can get the latest value of a checkbox directly from the grid,
this.gridDataBoundGrid1[cc.RowIndex, cc.ColIndex].CellValue
For other celltypes, you would get the value from the CurrentCell.Renderer.ControlText.
If you run the celltype samples (Syncfusion\Essential Suite\Grid\Samples\CellTypes), they have the option of showing the currentcell events in the textbox at the bottom of the form.