|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Dropdownlist headingsHi,
Senario: i have a dropdownlist which is bound to a lookup table. question: how do i insert headings into the dropdownlist which cannot be selected, without altering the selected values of the other bound items? Thanks. Jack Hi
Just use the following code: ListItem item = new ListItem("Header", "somevalue"); ddlCategory.Items.Insert(0, item); // OR // ddlCategory.Items.Insert(0, "Header"); -- Show quoteHide quoteEirik Eldorsen "jack-e" <jac***@humlog.com> skrev i melding news:1120827522.063766.117390@g47g2000cwa.googlegroups.com... > Hi, > > Senario: i have a dropdownlist which is bound to a lookup table. > > question: how do i insert headings into the dropdownlist which cannot > be selected, without altering the selected values of the other bound > items? > > Thanks. > > Jack > "jack-e" <jac***@humlog.com> wrote in message ListItem li = new ListItem("Text", "Value");news:1120830281.508353.297360@g14g2000cwa.googlegroups.com... > how do i disable the item so the user can't select it? > li.Enabled = false; Kev
Custom control: How to render an embedded image at design-time?
Render and Image on a Button I guess this can't be done can it ? Unhappy call to a 2nd dataItem in ItemTemplate of an asp:TemplateC Tool to monitor/trace all method calls? WinForm as ASP.NET custom control Webcontrol Designer Awareness... Re: accessibility and asp:button Register directive for custom web control in VS 2005 Beta 2 accessing a specific cotrol from web DataGrid control. |
|||||||||||||||||||||||