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

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.
 
R

RMZ

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top