C# Corner
Tech
News
Videos
Forums
Trainings
Books
Events
More
Interviews
Jobs
Live
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Make datagridview cells unselectable
WhatsApp
Ranjit Powar
Oct 31
2014
9.3
k
0
0
To prevent selection of cells in datagridview use SelectionChanged event as follows.
private
void
dataGridView1_SelectionChanged(
object
sender, EventArgs e)
{
dataGridView1.CurrentCell =
null
;
}
Winform datagridview