Want to become a Vibe Coder? Join Vibe Coding Training here
x
C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
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.2
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