//Creating a new DataSet DataSet ds = new DataSet(); //Creating a new DataTable DataTable dt = new DataTable("Employee"); //Adding columns to the DataTable dt.Columns.Add("EmployeeID", typeof(int)); dt.Columns.Add("EmployeeName", typeof(string)); dt.Columns.Add("Designation", typeof(string)); //Adding the DataTable to the DataSet ds.Tables.Add(dt);In the above example, we have created a new DataSet and a new DataTable. We have also added columns to the DataTable. Finally, we have added the DataTable to the DataSet using the Add method. Package library: System.Data