asp.net.ph

ListControl.AppendDataBoundItems Property

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.

Syntax


Inline <asp:ListControl appenddatabounditems = [ true I false ]... >
Script ListControl.AppendDataBoundItems = [ true I false ]

Property Value

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.

Remarks

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.

See Also

ListControl Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph