G
Guest
Hi All,
I am creating a DataTable on the fly and populate it in the code for example
like:
DataTable dT = new DataTable();
dT.Columns.Add("col1");
dT.Columns.Add("col2");
DataRow dR = dT.NewRow();
dR["col1"] = "val1";
dR["col2"] = "val2";
Is there anyway to run a select statement against this table? For example
like:
select * from dT order by col1?
What will be the connection object?
Thanks,
Moheb
.....
I am creating a DataTable on the fly and populate it in the code for example
like:
DataTable dT = new DataTable();
dT.Columns.Add("col1");
dT.Columns.Add("col2");
DataRow dR = dT.NewRow();
dR["col1"] = "val1";
dR["col2"] = "val2";
Is there anyway to run a select statement against this table? For example
like:
select * from dT order by col1?
What will be the connection object?
Thanks,
Moheb
.....