i want to get textbox's content and check in database,then show on datagrid all information response with textbox's content !
Please help me!
Thank u so much!

Firstly, populate the datatable/dataset and get the reference of DataView through the property DefaultView of datatable.

DataTable dt;
....
...

DataView dv=dt.DefaultView;

dv.RowFilter="ColumnName1=" + TextBox1.Text;

DataGridView1.DataSource=dv;
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.