Hi,
I need help binding the DataTable to the GridView.
Let's say I have this code
string filter = String.Format("title LIKE '{0}'", str);
DataRow[] rows = dt.Select(filter, "title");
Gridview1.DataSource = ?;
Gridview1.DataBind();
I need to display only the filtered items in the GridView. What do I assign to DataSource? I tried rows but that gave me an error.
Thanks.