我想一次使用两列过滤Visual Basic中的datagridview。例如:我想过滤主题栏和姓氏栏,
我目前正在使用此代码:me.studentbindingsource.filter =“ Subject_code,例如'%”&ComboBox1.Text&“%'”
但一次只能过滤一个。
使用String.Format,
me.studentbindingsource.filter = String.Format(“ Subject_code如'{0} **',Last_name如'{1} *'”,Combobox1.text,strLastname)
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句