数据库实现吧,用一个DataView,当你输入变化的时候,它检测
写 在TextBox的Textchange事件中
this.dvView.RowFilter = this.mField+" like " +"'"+ this.textBox1.Text.Trim()+"%'";