how to change the color of a button cell in a data grid view
hi -- i've added a data grid view with datagridviewbuttomcolumns (code below).
foreach (string item in uc.ChannelNames)
DataGridViewButtonColumn butcol = new DataGridViewButtonColumn();
butcol.Name = item;
profilerBottom_GV.Columns[item].Width = 62;
which works just fine. I can also click on the appropriate cell and go to the event handler. however, I want to access the properties of the button to change the background color of the button. There is a type called DataGridViewButtonCell which I assume has the necessary properties. I can't figure out how to create and link the DGVButtonCell instance to the appropriate cell so that i can access it in the event handler.