2
I need to create a DataTable Dynamic;
of the kind:
List<p> =...
List<l>=....
DataTable dt = new DataTable();
foreach (Prod pr in p)
{
    dt.Columns.Add(prod.Nome.Trim());
    for (int i = 0; i < l.Count; i++)
    {
        dt.Rows.Add(GetDados(pr,l[i]),GetDados(pr,l[i])...);
    }
}
My problem is inside the for, how can I insert rows into the datable when these rows are not defined, the number of columns being dynamic?