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.
Hi
I have a datagrid with datasource set to a datatable.
When I start editing a value (pen symbol on row marker) and hits the Save button without moving of the row first I get that the value is unchanged on the datarow.
It works fine if I move of the row first.
I'm trying to force the underlying datatable to end editing before doing anything further by using
Me.BindingContext(dsClassRooms.ClassRooms).EndCurrentEdit()
But it doesent help.
Any suggestions ??
> Hi
I had the same Problen and did this:
if (dgSpesen.CurrentCell.IsEditing)
{
dgSpesen.CurrentCell.EndEdit();
dgSpesen.CurrentCell.Move(GridDirectionType.Down,1,false);
dgSpesen.CurrentCell.Move(GridDirectionType.Up,1,false);
dgSpesen.CurrentCell.CancelEdit();
}
It works but there may be a better way to do it right.
Try it.
> Hi
> I have a datagrid with datasource set to a datatable.
> When I start editing a value (pen symbol on row marker) and hits the Save button without moving of the row first I get that the value is unchanged on the datarow.
> It works fine if I move of the row first.
>
> I'm trying to force the underlying datatable to end editing before doing anything further by using
>
> Me.BindingContext(dsClassRooms.ClassRooms).EndCurrentEdit()
>
> But it doesent help.
> Any suggestions ??
>