When you retrieve records to diplay in a DataGridView control the first
record has the background highlighted even though no row is yet selected.
Does anyone know a way to suppress this first record highlighting after
pulling the records into the grid?
Your description isn't quite correct. The first row is in fact
selected - if you look at DataGridView.SelectedRows you should see the
first row in the list.
I don't know of any way to prevent the first row from being selected.
You have to arrange to unselect it after the DataGridView selects it.
If the datagridview is visible at the time you set it's DataSource,
then calling DataGridView.ClearSelection() immediately after setting
the DataSource will most likely work.
If you are setting the DataSource during the construction of a form
before the Load event fires, then you may have to call ClearSelection
later, perhaps in the Form.Load event.