0
Answer

How do I display my Search results in a dataGrid control ?

Waqas Ali

Waqas Ali

12y
896
1
Hello,
I am trying to display the search results I obtain from searching a database in a datagrid control present on my form.
I have a dataRow array named returnedRows in which all the rows found are stored. 
I know how to populate a datagrid in normal conditions but I can display the rows in returnedRows in my datagrid.


This is my code in normal conditions. 
                        dataGrid1.DataSource = dvdDS; //DataSet
                        dataGrid1.DataMember = "manager";//Table name I have specified

How do I change this code so it will display the results from my searches ?