Avatar of craigdev
craigdev

asked on 

DataGridView row selection color

I want to turn off row selection as I have a DataGridView that shows readonly data. At the moment the first cell is selected. Whats the easiest fastest way to make it so that no cells are selected? Or possibly change the cell selection color?

Cheers!

Visual Basic.NET

Avatar of undefined
Last Comment
Sancler
Avatar of Praveen Kumar
Praveen Kumar
Flag of India image

not tryied, but try to change
SelectionMode property to ColumnHeaderSelect
Avatar of craigdev
craigdev

ASKER

have tried that thanks, but no luck
ASKER CERTIFIED SOLUTION
Avatar of Sancler
Sancler

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Visual Basic.NET
Visual Basic.NET

Visual Basic .NET (VB.NET) is an object-oriented programming language implemented on the .NET framework, but also supported on other platforms such as Mono and Silverlight. Microsoft launched VB.NET as the successor to the Visual Basic language. Though it is similar in syntax to Visual Basic pre-2002, it is not the same technology,

96K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo