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.
When editing a textbox cell in a row in GridControl, the corresponding rowheader shows a pencil icon. When finishing editing the cell by pressing "Enter" key, current cell moves to the next cell. But the pencil still suspends. How to hide it or how to finish editing status?
Thanks!
ADAdministrator Syncfusion Team January 19, 2005 06:49 AM UTC
By default, a GridControl does not show a pencil when you are editing a cell. A GridDataBoundGrid does though. And it shows the pencil until the cached changes for the row are saved to the DataSource when you leave the row. So, in a GridDataBoundGrid, then pencil means there a pending changes to the row that have not been saved to the DataSource. If you want to immediately save these changes as you leave teh cell (as opposed to saving them when you leave teh row), you can subscribe to the CurrentCellChanged event and do it there.
private void gridDataBoundGrid1_CurrentCellMoved(object sender, GridCurrentCellMovedEventArgs e)
{
if(this.gridDataBoundGrid1.Binder.IsAnyDirtyField())
this.gridDataBoundGrid1.Binder.EndEdit();
}
If you want to save the c