2
Answers

how to search data in datagridview using ado.net

Atul Rokade

Atul Rokade

11y
2k
1
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)