Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Dropdowlist in Gridview footer not populating
- if (!IsPostBack)
- {
- GridViewRow FooterRow = (GridViewRow)grdTime.FooterRow;
- if (FooterRow != null)
- {
- QuartersTableAdapter Quarters = new QuartersTableAdapter();
- DropDownList ddMonStart = (DropDownList)FooterRow.FindControl("ddMonStart");
- ddMonStart.DataSource = Quarters.GetQuarters();
- ddMonStart.DataTextField = "QuarterHour";
- ddMonStart.DataValueField = "QuarterHour";
- ddMonStart.DataBind();
- }
- }
- if(e.Row.RowType == DataControlRowType.Footer)
Add Comment
Please, Sign In to add comment