Click here to Skip to main content
15,898,538 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
How to populate Datagrid view textbox column on Select index change event of Combobox Column in DataGridView
for eg. I have two Column One in ProdutName(DataGridView ComboboxColumn) and other is UnitMeasure(in kg,Liter,PCS,grams etc Which displayed in DataGrid View TextBox column) so according to combobox product change it should display the particular unit of that product in textboxcolumn.
Posted

1 solution

:doh:
hmm
populate your datasource for the comboboxes in the page load,
on selected index changed - use this code

http://www.telerik.com/community/forums/winforms/gridview/combobox-textbox-and-label-in-the-same-gridviewcell.asp[^]

then set your gridsource to the one you had previously created - and loop through or set your selected to whatever was in the text field before you chagned it
 
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