garyinmiami2003
asked on
adding cobo box to datagridview
I populate a datagridview with the query:
Select Col1, Col2, Col3, Col4, Reason from tbla
I want to add a combox box where the reason is. The value of the Reason is a code 3digits
Example "048" I want to look up the description for that code and display the description in the cobo box. If the were were updated, I want the code not the description.
The query to get the code Select DESC from Desc_tble wher Reason = '048'
My question is how to create and set the properties to do this?
Select Col1, Col2, Col3, Col4, Reason from tbla
I want to add a combox box where the reason is. The value of the Reason is a code 3digits
Example "048" I want to look up the description for that code and display the description in the cobo box. If the were were updated, I want the code not the description.
The query to get the code Select DESC from Desc_tble wher Reason = '048'
My question is how to create and set the properties to do this?
This link may help: http://stackoverflow.com/q uestions/1 1900502/ad ding-combo box-to-a-d atagridvie w-for-a-pa rticular-r ow
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Check also here
https://www.experts-exchange.com/questions/28078143/VB-net-DataGridView-Add-a-handler-for-selected-index-change-on-Dynamic-DataGridView-ComboBox-column.html
and here...
https://www.experts-exchange.com/questions/28076826/VB-net-Convert-DataGridView-column-to-a-ComboBox-at-runtime.html
https://www.experts-exchange.com/questions/28078143/VB-net-DataGridView-Add-a-handler-for-selected-index-change-on-Dynamic-DataGridView-ComboBox-column.html
and here...
https://www.experts-exchange.com/questions/28076826/VB-net-Convert-DataGridView-column-to-a-ComboBox-at-runtime.html