Windows Forms DataGridView control have different control types in the same column

前端 未结 3 2005
广开言路
广开言路 2021-01-05 00:49

Is it possible to do the following in a DataGridView:

In the same column I want to change the control type of each row between DataGridViewTextBoxColumn and DataGrid

3条回答
  •  温柔的废话
    2021-01-05 01:21

    You could create a template column with both controls in, hide the one you don't want, and bind the other to the datasource in code.

提交回复
热议问题