Controls - Do you set row select mode as "FullRowSelect" for DataGridView if it is read only? (Windows Forms Only)

Last updated by RebeccaLiu over 11 years ago.See history

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.

Figure: Bad Example - Row select mode is not "FullRowSelect".

Figure: Good Example - Row select mode is "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.

We open source. Powered by GitHub