I need to have a GridView row selectable by clicking anywhere on the row. How to do that?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you have added the Grid manually from the Tools bar you can change its
Selection Modeproperty toFullRowSelect. If you have added it programmatically you can useGrid.SelectionMode = DataGridViewSelectionMode.FullRowSelect.Grid.Rows[Grid.CurrentRow.Index].Cells["nameofcolumn"].Value.ToString()