Remove default selection row Datagrid View
In DataGridView
there is a row selected and highlighted by default. How can this default selec开发者_高级运维tion and highlighting be removed?
I figured it out myself.
After populating the DataGrid
, I called the following method:
datagrid.ClearSelection();
I found that faking the prevention of selection worked better for me.
See also here for a more thorough solution.
精彩评论