How does one set an image on a button in a DataGridView cell?

  • Thread starter Thread starter RMZ
  • Start date Start date
R

RMZ

Tried setting the cell value = to the button control, no luck it
appears to convert it to a string.... I just want to set the image
property of the button.
 
The appears to be no one to extract/cast a Button object from the
DataGridViewButtonCell object type. Microsoft's documentation carefully
refers to DataGridViewButtonCell as a "button like" object, so I
believe this is impossible and you have to use a custom data grid
column type to put an image inside a button control.
 
Back
Top