PowerShell |
Building a dynamic query and binding to DataGridView
Ok I'm building a dynamic query during runtime and i want bind the data to the DataGridView but I get lost when it comes to getting the data bound to the DataGridView. Can someone help me figure this out?

Donnelly James46 reputationPosted May 21, 2010, 10:30 AM EDT
BindingSource bs = new BindingSource();
bs.DataSource = qSWO(query); //returns a DataTable
GridWO.DataSource = bs;