[英]DataGrid CheckboxColumn
I´ve got a DataGrid with some data, which I fill like this: 我有一个包含一些数据的DataGrid,我将其填充为:
dgBuchung.DataContext = dataset;
dgBuchung.ItemsSource = dataset.Tables[0].DefaultView;
One Column has the values "Yes" or "No". 一列的值为“是”或“否”。 I need to show them as Checkboxes.
我需要将其显示为复选框。 I read a lot about CheckboxColumns and Binding, but nothing about a solution with my type of filling.
我读了很多有关CheckboxColumns和Binding的文章,但是关于填充类型的解决方案却一无所知。
How can I manage this? 我该如何处理?
您可以尝试使用返回类型布尔值(True和False)更改此属性。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.