Click here to Skip to main content
15,887,175 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: , +
I have datagridview in my form in which i have combobox in datagirdview and i want to display the selected values of combobox in other cell of datagirdview.
My combobox contain products details and its price, so i want to display and calculate the selected price of the products in other cell of DataGirdView which contains a TextBox. Please help me with the code of it.
Posted
Comments
Sergey Alexandrovich Kryukov 25-Dec-15 14:58pm    
Why not doing exactly what you described? It looks straightforward. What have you tried so far?
—SA

1 solution

All you need is this:
DataGridViewCell.Value Property (System.Windows.Forms)[^],
DataGridViewCell.ValueType Property (System.Windows.Forms)[^].

The states of controls in a cell are inquired and controlled by this unified property, Value. Read the value, set the value.

—SA
 
Share this answer
 
Comments
Ashutosh Dutondkar 26-Dec-15 1:59am    
Actually i havn't did this type so far and m also beginner in vb, nt exaclty beginner bt have learned many thing. this thing is something new to me, so please can you help me with the code. M not getting what to write in the coding section.
Sergey Alexandrovich Kryukov 26-Dec-15 2:06am    
Help with what? You did not even try to write any code to say if you are failing or not. Want to give up before you start?
—SA
Ashutosh Dutondkar 26-Dec-15 2:12am    
No Sir! Its not like that but i have not work on DataGridView so m not getting what to do!

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