Click here to Skip to main content
15,895,011 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have created a workable program that uses several identical user controls containing text boxes and a datagridview control. Every things works as planned except clicking on the datagridview control row header does not select the row. What could cause a row to not be selectable?
Posted
Updated 31-Aug-15 11:32am
v2
Comments
Sergey Alexandrovich Kryukov 31-Aug-15 17:31pm    
What's wrong with just reading original MSDN documentation?
Also, please pay attention for the question tags which I fixed for you. It's important to write relevant tags, so everyone could immediately see what you are talking about.
—SA

1 solution

Make sure you choose appropriate selection option:
VB
myDataGridView.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect

Please see:
https://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.selectionmode%28v=vs.110%29.aspx[^],
https://msdn.microsoft.com/en-us/library/3c89df86%28v=vs.110%29.aspx[^].

—SA
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900