This seems to be a really simple issue, but for some reason I've failed to find an answer. I have a DataGridView with MultiSelect = true and SelectionMode = FullRowSelect.
I'm binding a business entity collection to the DataGridView. The collection may or may not be empty when it is set to the DataGridView DataSource, or objects may be added to the collection later. The problem I'm having is that as soon as the DataSource is set, the first row on the DataGridView is selected.
I've done a few tests and it seems like no matter what happens with the DataGridView, as soon as something is bound to the data source something (first row or cell) will get selected regardless of the SelectionMode.
Is there anyway to have nothing selected?
I'm binding a business entity collection to the DataGridView. The collection may or may not be empty when it is set to the DataGridView DataSource, or objects may be added to the collection later. The problem I'm having is that as soon as the DataSource is set, the first row on the DataGridView is selected.
I've done a few tests and it seems like no matter what happens with the DataGridView, as soon as something is bound to the data source something (first row or cell) will get selected regardless of the SelectionMode.
Is there anyway to have nothing selected?