brgdotnet
asked on
How to insert images into a GridView column for a Windows Forms application?
I have a GridView in a windows forms control application. I am loading the Gridview from a DataTable object.
DataGridView.DataSource = table
The table has two columns. The first column will either contain the number 1, or nothing at all. The second column contains the names of members on a soccer team.
What I want to do is to use the "1" in the first column as a type of flag. If their is a "1" in that column I need to insert an image. So the image will replace the number 1. Note the same image will be used for every row which has the "1" in it.
I need the image to be inserted into the GridView row before the GridView is displayed on the users screen. Does anyone know how I can do this?
DataGridView.DataSource = table
The table has two columns. The first column will either contain the number 1, or nothing at all. The second column contains the names of members on a soccer team.
What I want to do is to use the "1" in the first column as a type of flag. If their is a "1" in that column I need to insert an image. So the image will replace the number 1. Note the same image will be used for every row which has the "1" in it.
I need the image to be inserted into the GridView row before the GridView is displayed on the users screen. Does anyone know how I can do this?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.