[2008] Inagecolumn question for Datagridview
Hi guys,
I want to add an imagecolumn for my bound datagridview. for each row, I will have a calltype of outgoing or incoming, so I want to display different images for outgoing calls and incoming calls. How can I do that even though my dgv is bound to a datatable.:confused:
Re: [2008] Inagecolumn question for Datagridview
Add an image column at design time.
Re: [2008] Inagecolumn question for Datagridview
Thanks jm, but how can I determine which image to show in a row based on the column that either has Incoming or Outgoing.
Re: [2008] Inagecolumn question for Datagridview
Handle the appropriate event(s) of the grid and use an If statement to test the value of one cell and set the value of the other accordingly.
Make sure you create two, and only two, Image objects at the start and then just use those same Images each time. Don't make the mistake of creating new Image objects every time.
Re: [2008] Inagecolumn question for Datagridview
thanks again jm. I will give it a try:afrog: