Controls - Do you set row select mode as "FullRowSelect" for DataGridView if it is read only? (Windows Forms Only)
  v1.0 Posted at 27/11/2012 8:18 PM by Rebecca Liu

If you use the DataGridView control which is read only, you had better set row select mode as "FullRowSelect". If the data cannot be modified we can let users select the whole row instead of one column.

without FullRowSelect
Figure: Bad Example - Row select mode is not "FullRowSelect".
with FullRowSelect
Figure: Good Example - Row select mode is "FullRowSelect".
Set select mode as FullRowSelect
Figure: Changed row select mode to FullRowSelect.
What's the next step? It's even better if you enable multiple row selection and copying, see Do your List Views support multiple selection and copying on Rules to Better Windows Forms Applications.

Related rules

    Do you feel this rule needs an update?

    If you want to be notified when this rule is updated, please enter your email address: