2
Answers

How to undo the datagridview cell values after cell leaving

I have a datagridview in which one column contains a button with text "Start".what I want is when I click on "Start" button then only that row, cell button text should change to "Stop" while other remains to "Start" using C# windows application.

Answers (2)
0
Revathi Parvathi

Revathi Parvathi

NA 263 7k 7y
Hi,
Thanks for your reply.It's not working for me. If I click the start button it will change the text to end from start.
0
Sundar

Sundar

NA 9.6k 94.5k 7y
  1. var BtnCell = (DataGridViewButtonCell)YourDataGridView.Rows[yourindex].Cells[cellindex];  
  2. BtnCell.Value = "New Button Value";  
I am not sure where you are looking for this, Here I have pasted a code from what I understood your requirement, if it is not your requirement, let me know little  clearly and detailed. Hope this may jhelps you. thanks in advance