|
-
Jul 28th, 2008, 01:49 AM
#1
Thread Starter
PowerPoster
[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.
-
Jul 28th, 2008, 01:52 AM
#2
Re: [2008] Inagecolumn question for Datagridview
Add an image column at design time.
-
Jul 28th, 2008, 02:04 AM
#3
Thread Starter
PowerPoster
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.
-
Jul 28th, 2008, 02:15 AM
#4
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.
-
Jul 28th, 2008, 02:18 AM
#5
Thread Starter
PowerPoster
Re: [2008] Inagecolumn question for Datagridview
thanks again jm. I will give it a try
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|