【问题标题】:Remove default selection row Datagrid View删除默认选定行 Datagridview
【发布时间】:2011-06-05 23:03:51
【问题描述】:

DataGridView 中有一行默认选中并突出显示。如何删除此默认选择和突出显示?

【问题讨论】:

    标签: datagrid


    【解决方案1】:

    我自己想通了。

    填充DataGrid后,我调用了以下方法:

    datagrid.ClearSelection();
    

    【讨论】:

      【解决方案2】:

      我发现faking the prevention of selection 更适合我。

      另请参阅here 以获得更彻底的解决方案。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2015-05-04
        • 2016-08-02
        • 1970-01-01
        相关资源
        最近更新 更多