Click here to Skip to main content
15,909,051 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi.,

I have a problem with datagridview ComboBox.

i have binded a combobox in datagridview with datasource. In that datagridview there is a combobox, by entering a character all the item starting with that character should pulldown in that combox.
Posted
Comments
Prerak Patel 12-Sep-11 0:03am    
Do you want to filter the items? or just to change the selection? What have you tried?

1 solution

Hopefully this would solve your problem:

VB
Private Sub ComboBox1_SelectionChangeCommitted(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged
      Me.myBindingSource.Filter = "<<DisplayMember>> = '" & ComboBox1.Text & "'"
End Sub
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900