Regards
I need search two words in datagrid
Example
If is team AC MILAN
If put word MILAN in text box have multiple values, becose I have basketbal team and footbal team
Need some solution LIKE: %AC%MILAN% (Result find all word in datagrid with AC and MILAN)
- private void SearchListTextBox_TextChanged(object sender, EventArgs e)
- {
- (ListDataGridView.DataSource as DataTable).DefaultView.RowFilter = string.Format("[Team] LIKE '%{0}%' OR [Player] LIKE '%{0}%'", SearchListTextBox.Text);
- countRowsLabel.Text = "Ukupno racuna: " + ListDataGridView.RowCount.ToString();
- }