BaseDataBoundControl.DataSource Property
.NET Framework 3.0
Gets or sets the object from which the data-bound control retrieves its list of data items.
Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
[BindableAttribute(true)] [ThemeableAttribute(false)] public: virtual property Object^ DataSource { Object^ get (); void set (Object^ value); }
/** @property */ public Object get_DataSource () /** @property */ public void set_DataSource (Object value)
public function get DataSource () : Object public function set DataSource (value : Object)
Not applicable.
Property Value
An object that represents the data source from which the data-bound control retrieves its data. The default is a null reference (Nothing in Visual Basic).When you set the DataSource property, the ValidateDataSource method is called. In addition, if the data-bound control has already been initialized, the OnDataPropertyChanged method is called to set the RequiresDataBinding property to true.
This property cannot be set by themes or style sheet themes. For more information, see ThemeableAttribute and Introduction to ASP.NET Themes.
Community Additions
ADD
Show: