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
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Prathap
NA
38
32.6k
How to create 'KeyDown' event programmatically for gridview?
Dec 31 2014 1:15 AM
I have two DataGridViews (DataGridView1 and DataGridView2 ).
I have created KeyDown event for DataGridview1 in
DataGridview1_EditingControlShowing event(object sender, DataGridViewEditingControlShowingEventArgs e)
{
e.Control.KeyDown +=new KeyEventHandler(Control_KeyDown);
}
but, when i tried to create same event for DataGridView2
DataGridview2_EditingControlShowing event(object sender, DataGridViewEditingControlShowingEventArgs e)
{
e.Control.KeyDown +=new KeyEventHandler(Control_KeyDown); // error: " handler Control_KeyDown already exists in this class "
}
How to crate KeyDown event Programmatically for DataGridView2 in same windows form?
Reply
Answers (
0
)
What are the ways to pause console page after run in C++?
Issues while opening a UTF16 encoded .csv file in excel usin