Can Datagrid column contain diffterent type of control in different row

前端 未结 2 2088
闹比i
闹比i 2021-02-09 11:16

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:53

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

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

提交回复
热议问题