I have a DataSet where I want to be able to have a Select Where Condition based on a search made by the user and bind the data back to the GridView.
DataRow[] result = mainData.Tables[0].Select("Last_Name like '%Knitter%'");
How do I take this result store it back into a DataSet and bind it to a GridView or how do I bind the DataRow result to a GridView?
Thanks for your help in advance.
Update
Actually I think I got it. All I had to do is:
mainData.Tables[0].Select("Last_Name like '%Knitter%'").CopyToDataTable();
Actually I think I got it. All I had to do is: