Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > Datagridview differenet types of cells in a single column
 

Datagridview differenet types of cells in a single column

Hi,

I need to use combo box, text and check box type cells in a column. How can I do this?

Manu
void Func  Tuesday, July 21, 2009 10:50 AM
hello ,
Start off with a datagridviewtextboxcolumn and replace the cells with DataGridViewComboboxCell, DataGridViewCheckBoxCell. like,

datagridview1.Rows[i].Cells[j] = new DataGridViewComboboxCell()
NareshG  Tuesday, July 21, 2009 1:07 PM
hello ,
Start off with a datagridviewtextboxcolumn and replace the cells with DataGridViewComboboxCell, DataGridViewCheckBoxCell. like,

datagridview1.Rows[i].Cells[j] = new DataGridViewComboboxCell()
NareshG  Tuesday, July 21, 2009 1:07 PM

You can use google to search for other answers

Custom Search

More Threads

• Any Event which automatically fires after ItemCheck in checked listview
• How To assign DataGridView another DataGirdView
• Selected row in LINQ datasource
• how restrict users from setting focus to multiple cells in DataGridView
• dgv issue
• binding navigator
• How to create ToolStripButton dynamically from the Database
• Combo Box not displaying databind text
• many to many (cross join) datagridview
• Error using Data Source Configuration Wizard in VS 2005