Goran Bibic

Goran Bibic

  • 474
  • 2.9k
  • 201.2k

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)