Can Datagrid column contain diffterent type of control in different row

前端 未结 2 711
陌清茗
陌清茗 2021-02-09 11:15

In Wpf, Can I create a datagrid which different row contain different type of control in same column?

For easiest case: datagrid with 5 cols, 2 rows, don\'t care about 4

2条回答
  •  南笙
    南笙 (楼主)
    2021-02-09 11:59

    Yes, you can. You need to create a template for your column.

    See this: WPF DataGrid different edit controls within a single column

提交回复
热议问题