Delete default selection bar Datagrid View

In DataGridViewthe default row is selected and highlighted. How can I remove this default selection and highlight?

+5
source share
3 answers

I realized that myself.

After filling, DataGridI called the following method:

datagrid.ClearSelection();
+15
source

I found that faking selection prevention worked better for me.

See also here for a more complete solution.

0
source

Use this to remove row selection in a WPF application:

DataGridName.UnselectAll();
0
source

All Articles