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.
RCRajadurai C Syncfusion Team March 26, 2009 03:15 PM UTC
Hi Falk,
Thanks for your interest in Syncfusion products.
The underlying datasource of the grid get updated only when EndEdit is called. This is called by default, when a cell loses focus. If you try to make this call explicitly in your case, the cell will lose focus on typing a single character and cannot allow you to type further continuously which is not a desired behavior. this.grid.Table.CurrentRecord.EndEdit(); this.grid.Table.EndEdit();
Hence, the underlying data cannot be updated while EndEdit is not called.
Regards, Rajadurai
ADAdministrator Syncfusion Team March 27, 2009 03:58 PM UTC
It can:
void Text_ActiveTextChanged(object sender,GridCellEventArgs e) { if(gridGroupingControl1.Table.CurrentElement!=null) { GridTextBoxCellRenderer textRenderer = gridGroupingControl1.TableControl.CurrentCell.Renderer as GridTextBoxCellRenderer; string text=null; MyClass ep = gridGroupingControl1.Table.CurrentElement.GetData() as MyClass; MyClass.MyProperty = textRenderer.ControlText; } }
RCRajadurai C Syncfusion Team March 31, 2009 01:25 PM UTC
Hi Falk,
Thanks for your update. With the provided code, it is possible to get the text in a seperate object on each edit in a cell. But it is not possible to commit the change to the underlying datarow position while editing in that cell. If tried, it will throw NullReferenceException.
If you feel the workaround which you provided satisfies the requirement in your application, please make use of it.
Please let me know if you have any further concerns.