Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I want get value from DataGridViewComboBoxColumn

Status
Not open for further replies.

warning99

Programmer
Nov 5, 2007
53
SA
Hi,,

I defined TTT as new DataGridViewComboBoxColumn and connect it to Data Base. TTT shows values. And I defined variable XXX as string.

Now I want when user chose value from TTT. XXX is assigned to this value. How can i put in XXX this value?

Because I try use this code:
XXX= TTT.Text
but it is not work . Please help me.
 
You have to decide how often you need to know what value is in the drop down. If you only need it right before doing some processing, then you just get the value out at that time.

If you need to display some value if the TTT.selectedValue = soemthing, then you are going to need to add an event to the on change of the ttt drop down.

-Sometimes the answer to your question is the hack that works
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top