Let\'s consider I have two comma separated strings as written below.
string name = \"A,B,C,D\"; string value = \"100,200,300,400\";
So I wa
try this:
string[] name = "A,B,C,D".Split(','); string[] value = "100,200,300,400".Split(','); DataTable tbl = new DataTable(); tbl.Columns.Add("name", typeof(string)); tbl.Columns.Add("value", typeof(string)); for( int i=0; i