You can create a dataset:
DataSet ds = new DataSet();
then in the loop:
for (int i = 1; i<11; i++)
{
ds.Tables.Add(i.ToString()); //Not sure of line of code, but should be
something like it.
....
}
Hope this helps.
"LPeter" <no****@nospam.local> wrote in message
news:ee**************@TK2MSFTNGP09.phx.gbl...
Hi Group,
i'd like to create 10 datatables at runtime
something like this
for (int i=1; i<11;i++)
{
DataTable i.ToString() = new DataTable()
}
How can I do it?
TIA
Peter