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
Mayank Jani
NA
477
77.5k
ComboBox PreviewKeyDown event problem.
Nov 26 2017 1:31 PM
Dear All,
Greetings of the day.
I am working on a C# WinApp and I have a WinForm that contains a ComboBox and a DataGridView. I have write code that when I press Enter key on an item of the combobox that items shows in the gridview. but it shows the same item twice with one blank row.
Apart from this there is code for remove a row from the datagridview, it works but, when click on the blank row it throws an error.
please see the screen shots attached to see both the code and result.
Please help me to correct where I am mistaking. I want to get the code rectified that when I press enter on an item from the combobox, the same item should be shown in the gridview only.
Thank You...
Mayank Jani
Attachment:
Problems.zip
Reply
Answers (
11
)
Special Folder vb.net
click on a button in another application from my C# applicat