I've tried to make a filter for DataGridView which would show me the row that selected in combobox, but it didn't work out. What should I change in my code?
DataView dv = new DataView(dt);
dv.RowFilter = string.Format("Convert({0}, System.String) LIKE '%{1}%'", dataGridView1.Rows[0].Index, comboBox1.SelectedItem);
dataGridView1.DataSource = dv;
I expected to see row, but I've got empty DataGridView. Thanks.