こんにちは。
カスタムクラスのバインドかDataTableのバインドかによって変わりますが、
もっとも簡単なのはDataViewをバインドさせてフィルタリングをかけることです。
C#
1public Form1()
2{
3 InitializeComponent();
4
5 DataTable dt = new DataTable();
6 dt.Columns.Add("ID");
7 dt.Columns.Add("Name");
8 dt.Rows.Add("1", "Hoge1");
9 dt.Rows.Add("2", "Hoge2");
10 dt.Rows.Add("3", "Hoge3");
11 dt.Rows.Add("4", "Hoge4");
12 dt.Rows.Add("5", "Hoge5");
13 dv = new DataView(dt);
14 comboBox1.ValueMember = "ID";
15 comboBox1.DisplayMember = "Name";
16 comboBox1.DataSource = dv;
17}
18
19private DataView dv = null;
20
21private void textBox1_TextChanged(object sender, EventArgs e)
22{
23 if (dv != null && !string.IsNullOrEmpty(textBox1.Text))
24 {
25 dv.RowFilter = string.Format("ID = '{0}'", textBox1.Text);
26 }
27}