Question Partial filtering of datagridview combobox items

Wulfric

New member
Joined
Nov 7, 2011
Messages
2
Programming Experience
Beginner
Hello,

Is there any way in which I can partially filter the items in a datagridview combobox? By this, I mean I would like to allow the user to select either a string (in my case, the word "Daily") or allow them to put in any number instead? So ideally, I would like to have the drop down show only "Daily", but if they do not want to use it, they may use a number instead by manual input.

Many thanks,

Wulfe
 
The standard combo box column doesn't support that. You would have to either create a derived column and cell class or else do some other convoluted stuff. I'd probably suggest a text box column instead and let the user type in only numbers or, when they type 'd' enter "Daily" yourself.
 
Back
Top