I am working in windows forms in c#. I have at table in sql server which has a column named AssignedTo. This column is of varchar type and contains more than one value separated by commas. When showing in datagrid, the values are shown easily in a cell. But as there are more than one value in AssignedTo column, so I want to show them in combobox in datagrid. The combobox in each row will have different values which have to picked from database.

I am trying to write the code in cell formatting event. Please help me and give any ideas or code.

>so I want to show them in combobox in datagrid.

Use DataGridViewComboBoxColumn column type.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.