【问题标题】:Hide/remove the GridViewGroupRow in Telerik RadGridView WPF在 Telerik RadGridView WPF 中隐藏/删除 GridViewGroupRow
【发布时间】:2013-08-26 12:01:03
【问题描述】:

如何在 Telerik RadGridView WPF 中隐藏/删除 GridViewGroupRow(带有展开/折叠的 RowHeader)。

我尝试设置 Height=1 或 Visibility=Collapsed 但它隐藏了数据(不是 RowHeader)。

       <telerik:RadGridView.GroupRowStyle>
            <Style TargetType="telerik:GridViewGroupRow">
                <Setter Property="ShowHeaderAggregates" Value="False"></Setter>
                <Setter Property="Visibility" Value="Collapsed"></Setter>
                <Setter Property="Height" Value="1"></Setter>
            </Style>
        </telerik:RadGridView.GroupRowStyle>

谁能帮我解决这个问题。提前致谢。

注意:

  • 我可以隐藏展开/折叠按钮和其他聚合内容。
  • 我可以隐藏 GridView 的缩进单元格列。

但无法隐藏 GridViewGroupRow。

【问题讨论】:

    标签: wpf telerik-grid


    【解决方案1】:

    我找到了解决办法。

    在 Telerik 的 indentpresenter 样式中将高度设置为零可以解决问题。

    我们还可以单独设置每个缩进部分的样式。

    http://www.telerik.com/help/silverlight/radgridview-styling-indent-cells.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-03-19
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多