G
Gregory Correll
I'm attempting to use an existing ADO.NET DataTable as a data source
for localized queries. Does anyone have the ConnectionString text
when using an existing code-generated DataTable as the source for the
queries?
Ex:
DataTable source = GetDataTableFromSomewhere();
string sql = GetComplexSqlStatementFromSomewhere();
OleDbCommand command = new OleDbCommand(sql);
command.Connection = new OleDbConnection( ???Connect to the source
DataTable??? );
OleDbDataAdapter adapter = new OleDbDataAdapter(command);
DataSet newDS = new DataSet();
adapter.Fill(newDS);
myGrid.DataSource = newDS.Tables[0];
Thanks,
Greg
for localized queries. Does anyone have the ConnectionString text
when using an existing code-generated DataTable as the source for the
queries?
Ex:
DataTable source = GetDataTableFromSomewhere();
string sql = GetComplexSqlStatementFromSomewhere();
OleDbCommand command = new OleDbCommand(sql);
command.Connection = new OleDbConnection( ???Connect to the source
DataTable??? );
OleDbDataAdapter adapter = new OleDbDataAdapter(command);
DataSet newDS = new DataSet();
adapter.Fill(newDS);
myGrid.DataSource = newDS.Tables[0];
Thanks,
Greg