Atul Rokade

Atul Rokade

  • NA
  • 141
  • 42.2k

how to search data in datagridview using ado.net

Feb 1 2013 1:29 PM
iam creating one application where i want search particular patient information in datagridview when user search that patient name in textbox how can i do that?
 
ds = new DataSet();
DataView dv = new DataView();
dv.Table = ds.Tables["Physio_cureTable"];
dv.RowFilter = "PationName like '%" + textBox1.Text + "%'";
dataGridView1.DataSource = dv;
 


iam trying like something but it not useful datagridview make blank to use this 

Answers (2)