[英]Silverlight 4 datagrid and Selecting All Checkboxes when select the Group Header CheckBox
[英]Disable collapsing in Silverlight DataGrid group header
如何禁用Silverlight DataGrid组标题行中的折叠? 我不想隐藏那排!
将此添加到您的数据网格的Xaml:-
<sdk:DataGrid.RowGroupHeaderStyles>
<Style TargetType="sdk:DataGridRowGroupHeader">
<Setter Property="IsEnabled" Value="False"/>
</Style>
</sdk:DataGrid.RowGroupHeaderStyles>
尝试这个
private void datagrid_LoadingRowGroup(object sender, DataGridRowGroupHeaderEventArgs e)
{
e.RowGroupHeader.IsHitTestVisible = false;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.