I am reading xml file in winform and displaying data in DataGridView DataGridView read in xml has a button, and when the button is clicked, the button's text is changed.
DataGridViewButtonCell btnStart = null;
btnStart = (DataGridViewButtonCell)(DataGridView.Rows[e.RowIndex].Cells[0]);
var btnType = btnStart.Value.ToString();
btnStart.UseColumnTextForButtonValue = false;
In this result I try to re-read the XML and append the ROW
DataGridView.DataSource = dataSet.Tables[0];
Is there a way to add ADD to the DataGridView without changing the text of the button in the DataGridView that is shown?
btnStart… then sets the button string value to a variable calledbtnTypethen does nothing with that value…? … In other words, … I do not see where thebtnStart.Value = SomeValueis set…? …