Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

setting an Image column in a datagrid view based on a value in the database c#

$
0
0

Hi guys,

 

I have a datagridview which has a image column, I need to set this image based on a value in a database table.  For instance if the field in the table is "laptop" the column will display image x and if the value is desktop display image y. 

 

I would image that this would have to be done via code if so, do i have to code the bindings for the other columns in the datagrid view?

 

Thanks in advance,

Phil


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>