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 something like this:
DataTable table = new DataTable();
table.Columns.Add("name", typeof(string));
table.Columns.Add("value", typeof(string));
string name = "A,B,C,D";
string value = "100,200,300,400";
string[] names = name.Split(',');
string[] values = value.Split(',');
for(int i=0; i
But you should implement some validation code to make it more appropriate.