wiswalld
asked on
Filter a datagridview with two criteria
Filter a datagridview with two criteria. I currently use one but to also filter by the current date.
Dim dv As DataView = m_DataSet.Tables("tbl_empl oyee").Def aultView
dv.RowFilter = "Shift='" & Me.ComboBox2.Text & "'"
DataGridView1.DataSource = dv
Dim dv As DataView = m_DataSet.Tables("tbl_empl
dv.RowFilter = "Shift='" & Me.ComboBox2.Text & "'"
DataGridView1.DataSource = dv
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
dv.RowFilter = String.Format("Shift='{0}'
Bob