0
Reply

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

Waqas Ali

Waqas Ali

Jul 23 2012 5:00 AM
888
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 ?