Quantcast
Channel: CSharp Forum Latest Questions
Viewing all articles
Browse latest Browse all 32060

datagridview button text change

$
0
0
i have a datagridview in which last column contains button with text "Start"

what i want is when i click on "Start" button than only that row,cell button text should change to "Stop" while other remains to "Start"

i trie below code but not able to do it


dataGridView1.Rows[e.RowIndex].Cells[1].Value = "Stop";
 this.dataGridView1.UpdateCellValue(1, e.RowIndex);


where 1 is the columnindex, i even tried with e.columnindex but not working

Viewing all articles
Browse latest Browse all 32060

Trending Articles