System.Web.UI.WebControls Namespace ListControl Class
.NET Framework version 2.0
Sets or retrieves a value indicating whether list items are cleared before data binding.
Inline |
<asp:ListControl appenddatabounditems = [ true I false ]... > |
Script |
ListControl.AppendDataBoundItems = [ true I false ] |
This property accepts or returns only a boolean value: true if list items are not cleared before data binding; otherwise, false. Default value is false.
Use the AppendDataBoundItems property to enable adding items to the ListControl object before data binding occurs.
This property is typically used to add an initial list item with custom advisory text, for example <-- Select Category -->, before the list control is dynamically populated from a data source.
After data binding, the items collection contains both the previously added item and the items from the data source.
ListControl Members