开发者

WPF Datagrid example of row details with checkbox?

I would like to find an example of a WPF Datagrid that has row details with checkboxes in the details. I need to list some data and then present boolean (checkbox) details for each row in that data. I can find examples of how to make the rowdetails appear and what-not but v开发者_StackOverflow社区irtually every example uses a text block or something like that - I cant find any with a checkbox that I can also bind to.


I do not understand what the problem is supposed to be, the following should bind to the SomeBoolProperty of the item.

<DataGrid ...>
   <DataGrid.RowDetailsTemplate>
        <DataTemplate>
             <CheckBox IsChecked="{Binding SomeBoolProperty, UpdateSourceTrigger=PropertyChanged}">Some Bool Property</CheckBox>
        </DataTemplate>
   </DataGrid.RowDetailsTemplate>   
</DataGrid>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜