Tiago Freitas Leal asked 2016-08-26 14:40:37 UTC
On my DGV, I have a Tool in a TextBox column. The tool has a proper name (tool.Name = "clear").
The event handler fetches the cell
var cell = ((DataGridView)sender).Rows[e.RowIndex].Cells[e.ColumnIndex];
and set its value to empty
cell.Value = string.Empty;
The debugger shows that each step does what it's supposed to do but the fact is the DGV cell shows the same content (if I set it to "Abc", after running the tool it shows "Abc" all the same)
Sample attached
Tiago Freitas Leal asked 2016-08-26 14:40:37 UTC
On my DGV, I have a Tool in a TextBox column. The tool has a proper name (tool.Name = "clear").
The event handler fetches the cell
and set its value to empty
The debugger shows that each step does what it's supposed to do but the fact is the DGV cell shows the same content (if I set it to "Abc", after running the tool it shows "Abc" all the same)
Sample attached