【发布时间】:2026-02-06 13:05:02
【问题描述】:
我想一次使用两列过滤 Visual Basic 中的数据网格视图。例如:我想过滤主题列和姓氏列,
我目前正在使用此代码: me.studentbindingsource.filter = "Subject_code like '%" & ComboBox1.Text & "%'"
但它一次只过滤一个。
【问题讨论】:
-
filter=String.Format("Subject_code like '{0}**' and Last_name like '{1}*'",Combobox1. text,strLastname) 它过滤两列,我如何过滤三列或更多,我应该改变什么?
标签: vb.net datagridview filter