Goran Bibic

Goran Bibic

  • 482
  • 2.9k
  • 196.7k

Search datagrid from two textbox c#

Sep 20 2021 8:31 AM

 How to add SearchTextBox2.Text to search value from 2 textbox in EmailDataGridView?

(EmailDataGridView.DataSource as DataTable).DefaultView.RowFilter = string.Format("[Ime i prezime] LIKE '%{0}%' OR [Preduzece] LIKE '%{0}%'  OR [E-mail] LIKE '%{0}%' ", SearchTextBox.Text);
            

 


Answers (5)