//Insert data List<string> AllData = new List<string>(); List<string> Header = new List<string> { "Status", "Percentage", "Total", "Profit" }; List<string> Header2 = new List<string> { "m3", "m3", "m3", "m3" }; List<string> TableData = new List<string> { "ok", "10", "10", "Up", "10", "10", "10", "10", "10", "10", "10", "10" }; AllData.AddRange(HeaderData); AllData.AddRange(HeaderData2); AllData.AddRange(TableData);
Description
- The above sample coding shows how to add several array into one array