Using the ASP.NET AJAX ComboBox Control, users can set the item text, choose the image that is displayed on the item Text and define the text when mouse is over the item using C# code. Apart from these common properties, the web ComboBox Control also allows users to set the default item for custom validation. From this online tutorial, you will find sample C# codes which aim to show you how to customize the combobox item settings programmatically. Set ComboBox Item Properties in C#
Here we list the properties that the ComboBox Control has offered and briefly illustrate the functions each property has owned.
The C# programming example below is offered to guide you how to use above combobox item properties. PerComboBoxItem item1 = new PerComboBoxItem(); Set Default Item of ComboBox in C#
The Default Item property is mainly used for custom validation scenarios. The item that you set using the Default Item will be displayed as the first item in the drop-down list. Note: for easier validation, the value of the web ComboBox DOM object will return default item's value once the default item is selected.
Following sample C# code is used to show users how to use the Default Item property. PerComboBox1.DefaultItem = new PerComboBoxDefaultItem(); |
ASP.NET AJAX UI Controls ASP.NET AJAX Chart UI Control ASP.NET AJAX Grid UI Control ASP.NET AJAX Barcode UI Control ASP.NET AJAX Button UI Control ASP.NET AJAX Calendar UI Control ASP.NET AJAX NavigationBar UI Control ASP.NET AJAX Captcha UI Control ASP.NET AJAX Color Editor UI Control ASP.NET AJAX ComboBox UI Control OverviewGetting StartedElementsFeatures FilteringValidationAutoCompleteChekBox SupportRender ModesLoad On DemandTemplates Item TemplateHeader and Footer TemplateData Binding ArrayList DataDataSource DataXML DataClient Prpgramming ComboBox EventServer Programming ComboBox EventASP.NET AJAX DataPager UI Control ASP.NET AJAX Dock UI Control ASP.NET AJAX DropDownList UI Control ASP.NET AJAX DropDownTree UI Control ASP.NET AJAX HtmlEditor UI Control ASP.NET AJAX FileManager UI Control ASP.NET AJAX Filter UI Control ASP.NET AJAX Input UI Control ASP.NET AJAX ListBox UI Control ASP.NET AJAX ListView UI Control ASP.NET AJAX ToolBar UI Control ASP.NET AJAX TabControl UI Control ASP.NET AJAX Menu UI Control ASP.NET AJAX ToolTip UI Control |