KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
In my WinForms I have DataGridView . I wanted to select full row at once so I set SelectionMode as FullRowSelect . And now I have problem, because at the beginning my form underlines first row (set of selected rows is empty, the first row is not selected but just underlined). I have tried many things, such as: private void dataGridView1_DataBindingComplete(object sender, DataGridViewBindingCompleteEventArgs e) { dataGridView1.ClearSelection(); } And all failed, because in fact there is no selection. How can I get rid of this underline? Thanks for any help!
Tags (comma-separated)
Save Edits
Cancel