JK
Juergen Kaufmann
July 7, 2003 11:50 AM UTC
> 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 ??
>