string s1 = ""; string s= ((ComboBoxItem)cmbSearchBy.SelectedItem).Content.ToString() ; if (cmbSelect.SelectedValue != null) { s1 = (cmbSelect.SelectedValue).ToString(); } dv = new DataView(dt); dv.RowFilter = "'" + s.Trim() + "'='" + s1.Trim() +"'"; dt = new DataTable(); dt = dv.ToTable();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)