Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove default selection row Datagrid View

Tags:

datagrid

In DataGridView there is a row selected and highlighted by default. How can this default selection and highlighting be removed?

like image 494
Afnan Bashir Avatar asked Jan 09 '11 02:01

Afnan Bashir


1 Answers

I figured it out myself.

After populating the DataGrid, I called the following method:

datagrid.ClearSelection();
like image 171
Afnan Bashir Avatar answered Oct 19 '22 09:10

Afnan Bashir