Click here to Skip to main content
15,913,587 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a DataGridView and I want to insert a picture box into any cell of DataGridView and I can clear it if i want and if picture is lose ,this cell will display "" instead "X".

could you help me, please?
thanks.
Posted
Updated 24-Feb-11 23:53pm
v2

VB
Dim Occupation_Combo As New DataGridViewComboBoxColumn()
       Occupation_Combo.DisplayIndex = 6
       DG_Family_Information.Columns.Add(Occupation_Combo)
       Occupation_Combo.HeaderText = "Occupation"
       Occupation_Combo.Items.Add("-")
       Occupation_Combo.Items.Add("STUDY")
       Occupation_Combo.Items.Add("LITTLE")
       Occupation_Combo.Items.Add("HOUSE WORK")
       Occupation_Combo.Items.Add("RETIRED")
       Occupation_Combo.Items.Add("JOB")
       Occupation_Combo.Items.Add("FARMER")
       Occupation_Combo.Items.Add("BUSINESS")
       Occupation_Combo.Items.Add("WORKER")
       Occupation_Combo.Items.Add("CONSALTANT")
       Occupation_Combo.Items.Add("EXPIRED")
       Occupation_Combo.Name = "Occupation"
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900