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
Houssam
NA
24
27k
What a strange behavior in AuotComplete in DataGridViewCombobox Column ?
Aug 31 2012 9:22 AM
Hi ...
I am using the (EditingControlShowing) event to Enable AutoComplete in DataGridViewComboBox Column.
private void dataGridView1_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e)
{
if (e.Control is DataGridViewComboBoxEditingControl)
{
ComboBox combo = (ComboBox)e.Control;
((ComboBox)e.Control).DropDownStyle = ComboBoxStyle.DropDown;
((ComboBox)e.Control).AutoCompleteSource = AutoCompleteSource.ListItems;
((ComboBox)e.Control).AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
}
}
but it has a strange behavior , when I type some characters then I leave the cell (Tab or right key) , the value did not change .
But if I repeat that, the value will change.
I attached the source code and (EXE) video to explain the problem.
could you please help me to make it works correctly .
thanks in advanced.
Attachment:
autocompleteproblem.zip
Reply
Answers (
1
)
DirectX9 Initialize Problem
Sort Order