Brady Kelly
2007-04-27 16:24:31 UTC
I have an HtmlSelect control that I dynamically add to a Repeater row (I
build each row in ItemDataBound). I set data binding properties as follows,
but when the drop down renders it is still empty. Why could this be?
HtmlSelect select = new HtmlSelect();
select.Value = dataValue.ToString();
select.DataSource = this.MyController.WorkTypeList;
select.DataValueField = "WorkTypeID";
select.DataTextField = "WorkType";
gridCell.Controls.Add(select);
===================================
This list is hosted by DevelopMentor� http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
build each row in ItemDataBound). I set data binding properties as follows,
but when the drop down renders it is still empty. Why could this be?
HtmlSelect select = new HtmlSelect();
select.Value = dataValue.ToString();
select.DataSource = this.MyController.WorkTypeList;
select.DataValueField = "WorkTypeID";
select.DataTextField = "WorkType";
gridCell.Controls.Add(select);
===================================
This list is hosted by DevelopMentor� http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com