DataGridView Save changes cell only after leaving the row ?
-
Hi When changing a value in any cell in DataGridView , this value is saved into the related dataset only after the user clicks on an other cell in an other row ! Even the mecthod AcceptChanges() will not save the contents of this cell unless the user moves to an other row . I need to save these contents straight away without forcing the user to leave the cell . any Ideas ? thanx .
-
Hi When changing a value in any cell in DataGridView , this value is saved into the related dataset only after the user clicks on an other cell in an other row ! Even the mecthod AcceptChanges() will not save the contents of this cell unless the user moves to an other row . I need to save these contents straight away without forcing the user to leave the cell . any Ideas ? thanx .
-
unitecsoft wrote:
without forcing the user to leave the cell
How will you know when the user is finished with editing then? Saving the current value at each keypress is going to be inefficient :(
I are troll :)
the problem is even if you save by clicking a SAVE button which will fire AcceptCanges() method , the contents of the cell are not saved unless the user previously leaves the row which include that cell .
-
the problem is even if you save by clicking a SAVE button which will fire AcceptCanges() method , the contents of the cell are not saved unless the user previously leaves the row which include that cell .
-
If he clicks a save-button, doesn't that move the focus to the button (and out of the cell, triggering validates and such)?
I are troll :)
Yes , but does not save the value of that cell !!! I don't know why !!! the only way to save it is to click a different ROW within the grid .
-
Yes , but does not save the value of that cell !!! I don't know why !!! the only way to save it is to click a different ROW within the grid .