c# - Populating a comboboxcolumn -


i using c# in visual studio 2010. have comboboxcolumn in datagridview. @ runtime, combobox column not populate data. i'm pretty new i'm not sure if enough information me here's code used create column:

        datagridviewcomboboxcolumn cbcolumn = new datagridviewcomboboxcolumn();         cbcolumn.name = "insurances";         cbcolumn.headertext = "insurances";         cbcolumn.visible = true;         try         {             cbcolumn1.datasource =((assessment)datagridview.datasource).insuranceslist;             cbcolumn1.displaymember = "customername";             cbcolumn1.valuemember = "customerid";         }             catch (exception ex)             {                 int index = 0;             }              datagridview.columns.add(cbcolumn); 

ps assessment public class, don't know if helps.

any appreciated.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -