How can I place a comboxbox control and other controls in a column of datagridview control in vb.net ? If we can do so, then how can we access the values of these controls ?
To add combobox control, just use DataGridViewComboBoxColumn.
Add one column as DataGridViewComboBoxColumn in to your datagrid view control while adding columns to your control.. Set appropriate properties for the control before adding into columns collection. Refer MSDN documentaion for more information regarding that.
To retrieve values, just add code to retrieve values in the DatagridViewCellContentClick event. Then typecast the cell content to DataGridViewComboBoxColumn. Then u can access the properties from the instance you have just created...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.