How to Populate Data with DataGridViewComboBoxColumn from database
Hi Experts...Am developing windows application..I want to insert one DataGridViewComboBoxColumn to DataGridView control at design time, and access it and populate data with it at run time..Please Help me out..Thanks in advance..

Amit ChoudharyPosted Jul 20, 2011, 5:03 AM
set the properties with following values
DataPropertyName = "Category"
DataSource = CategoryBindingSource
DisplayName = "Name"
ValueMemeber = (blank)
Hope this helps you.
Thanks.
Zoran HorvatPosted Jul 20, 2011, 4:50 AM
You can read data from the database into DataTable object - just use the DbCommand to populate the DataTable. Then set this DataTable object to DataGridViewComboBoxColumn's DataSource property and that will populate the column.
Zoran