//page load..DataTable dt2 = new DataTable();DataColumn col;col = new DataColumn("empid", System.Type.GetType(" System.Int32"));//add this column empid into datatable dt2dt2.Columns.Add(col);col = new DataColumn("empname", System.Type.GetType("System.String"));dt2.Columns.Add(col);col = new DataColumn("Remarks", System.Type.GetType("System.String"));dt2.Columns.Add(col);col = new DataColumn("Country", System.Type.GetType(" System.Int32"));dt2.Columns.Add(col);dt2.AcceptChanges();Gridview1.Datasorce=dt2;//binding the data table to gridviewGridview1.Databind();