Tuesday, 20 August 2013

Edit entire row in a DataGridView (not only one cell)

Edit entire row in a DataGridView (not only one cell)

Could somebody advice how to do this?
Currently i have :
DataGridView with four columns - Text1 | Text2 | EditButton | SaveButton
When i click on the Text1 it becomes an editable field and i can change
its value
Then i try to edit Text2 but the click on this cell saves my changes in Text1
The issue is : when i try to edit second field (Text2) the first one
(Text1) loses the focus, exits edit mode and saves changes that i made
meanwhile i want to save all changes in a row simultaneously.
What i want to implement :
I press EditButton and all cells becomes editable so i can change value of
any cell in a row
I change value of Text1, then value of Text2
And only when i press SaveButton it saves made changes
The question is : how to keep all cells in a row in edit mode until i
press specific button?

No comments:

Post a Comment