A problem with datagridview combobox

  • Thread starter Thread starter SonOfNet
  • Start date Start date
S

SonOfNet

Guest
Hi, friends..
I have a problem relating to datagridview combobox..

I have a datagridview binded with a customer datatable, one of datagridview columns is combobox which uses student datatable as a datasource (means: datagridViewCombobox.datasource= studentDatatable)..

Now, when the user adds a new row to the datagridview, and selects a student name from the combobox, everything goes fine, and the new row is added to the customer datatable normally..

but, when the user wants to add a new name which isn't one of the student names including in combobox list by typing the name manually, the combobox doesn't accept the new entry and the new row isn't added to the datagridview.

So, how to make the datagridview combobox behaves as a datagridview textbox when the user enters a custom value which doesn't belong the values found in the combobox list. (in other words: how to make datagridview combobox accepts the entering by selecting an item from its list, and in the same time accept the entering manually by the user.)

I use VS 2010..

Thank you so much..

Continue reading...
 
Back
Top