【问题标题】:how to hide the particular row in the Gridview?如何隐藏 Gridview 中的特定行?
【发布时间】:2010-08-25 10:05:10
【问题描述】:

如何隐藏 GridView 中的特定行?

举例

如果我点击 2/4/1/7 它将相应地隐藏 3/5/2/8 如何执行此操作

【问题讨论】:

    标签: c# gridview row show-hide


    【解决方案1】:

    你可以试试这样的

    YourDataGridView.CurrentCell = null;
    YourDataGridView.Rows[rowIndexToHide].Visible = false;
    

    第一行将 CurrentCell 设置为 null,因为您可以隐藏选定的行。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-06-16
      • 1970-01-01
      • 2013-02-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-10-28
      相关资源
      最近更新 更多