how to add datacolumn in datatable dynamically using looping?using asp.net with c# language with example?
how to add datacolumn in datatable dynamically using looping?using asp.net with c# language with example?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Santhosh Kumar JayaramanPosted Nov 5, 2012, 8:26 AM
for (int i = 0; i < myArray.Count; i++)
{
string name = myArray[i]; d.Columns.Add(name);
}