HtmlSelect not Binding

Brady Kelly <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.web
Organization Chase Software
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.