DataTable table = new DataTable();
table.Columns.Add("Column1", typeof(int));
table.Columns.Add("Column2", typeof(string));
object [] rowValues =new object[] { 1,"Test","moreValue"};
table.Rows.Add(rowValues);
catch (ArgumentException ex)
Console.WriteLine(ex.Message);