string sql_sel = "select InS.ID as isID, InS.InventorySize , InS.MinValue,InS.MaxValue from InventorySize InS "; DataSet ds = SqlHelper.GetDataSet(sql_sel); if (ds != null && ds.Tables[0].Rows.Count > 0) { DataColumn dcNo = new DataColumn("No"); ds.Tables[0].Columns.Add(dcNo); int i = 0; foreach (DataRow dr in ds.Tables[0].Rows) { dr["No"] = i+1; ++i; } } RepeaterCheck.DataSource = ds; RepeaterCheck.DataBind();