How to disable Cell Highlighting in a datagridview,
Highlighting should not happen even if I click on the cell.
Any thoughts please
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.
The only way I’ve found to “disable” highlighting is to set the
SelectionBackColorand theSelectionForeColorin theDefaultCellStyleto the same as theBackColorandForeColor, respectively. You could probably do this programmatically on the form’sLoadevent, but I’ve also done it in the designer.Something like this: