Try like this
DataTable table = new DataTable();
DataColumn col1 = new DataColumn("ID");
col1.DataType = System.Type.GetType("System.Int");
table.Columns.Add(col1);
DataRow row = table.NewRow();
row[col1] = 1;
table.Rows.Add(row);
gvTest.DataSource = table;
gvTest.DataBind();
You need to change this as per your needs. while on each Page_Load DataTable might lose its value. So keep the datatable in a session.
Has seen the exact requirement and sample somewhere. You can google it and find it out.