We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Update a value in datagrid and hit the Save button

Thread ID:

Created:

Updated:

Platform:

Replies:

2871 Feb 18,2003 11:43 AM UTC Jul 7,2003 11:50 AM UTC WinForms 1
loading
Tags: FAQ
Administrator [Syncfusion]
Asked On February 18, 2003 11:43 AM UTC

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 ??

Juergen Kaufmann
Replied On 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 ?? >

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;