Hello Team,
I am developing one Windows form application in which -
I would like to add Command Button on
DataGridView
only for few rows.
In
DataGridView
there is Column Named - "Status". If Status is Open then I want see Button to be visible. and for other cells I don't want button to be visible.
I am refreshing datagridview dynamically.
I have below code to add Button Column -
DataGridViewButtonColumn btn = new DataGridViewButtonColumn();
dataGridView1.Columns.Add(btn);
btn.HeaderText = "";
btn.Text = "Delete";
btn.Name = "btn";
btn.UseColumnTextForButtonValue = true;
Please help.