I need to add my DataGridViewButtonCell
to Column
, and I need to name each other with different names.
But I didn't find any text properties.
Can anyone help me, please?
i do that stuff
DataGridViewButtonCell b = new DataGridViewButtonCell();
b.Value = "name";
MainTable.Rows.Add(b);
and it doesn't work
If you want all the buttons to have same text use UseColumnTextForButtonValue property.
If you want different text for each button then use DataGridViewCell.Value property
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With