TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Make datagridview cells unselectable
Ranjit Powar
Oct 31
2014
Code
8.5
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
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