visual net. datagriview

Viewed 39

In datagridview it will be possible every time I go down a column in the cell, specify the type of object I want. Example in row one I want combobox, in second row I need textbox, in third row check

1 Answers

Each column type has a default cell type but you can put any cell you want in any column. You can simply create a cell and place it by indexing the grid, e.g.

myDataGridView(columnIndex, rowIndex) = New DataGridViewTextBoxCell

You should choose the column type based on the most common cell type and then create just the cells that need a different type.

Related