I have a question, how can i split the string and make splitted string show line by line?
String:
What is "that" ENUM "No", "Yes", "OK", "Cancel";
I want to have DataTable:
Name Type Comment
"that" ENUM "No" // all of them
"Yes" // should be
"OK" // in the same
"Cancel" // cell
must be something with string[] tmpList = tmp.Split(new Char[] { ' ',',', ';' }, StringSplitOptions.RemoveEmptyEntries); and then attributeDEF.Rows.Add(new object[] { tmpList1[1], tmpList1[2], tmpList1[3] + "\n" + tmpList[a]+ "\n"});
Can someone give me a clue?
The following code will generate a row for you: