Share via


ReportDataSource.Value Property

Gets or sets the instance of the report data source.

Namespace: Microsoft.Reporting.WebForms
Assembly: Microsoft.ReportViewer.WebForms (in microsoft.reportviewer.webforms.dll)

Syntax

'Declaration
<CategoryAttribute("Misc")> _
Public Property Value As Object
'Usage
Dim instance As ReportDataSource
Dim value As Object

value = instance.Value

instance.Value = value
[CategoryAttribute("Misc")] 
public Object Value { get; set; }
[CategoryAttribute(L"Misc")] 
public:
property Object^ Value {
    Object^ get ();
    void set (Object^ value);
}
/** @property */
public Object get_Value ()

/** @property */
public void set_Value (Object value)
public function get Value () : Object

public function set Value (value : Object)

Property Value

An Object containing an instance of the report data source.

Remarks

Value may be an instance of System.Data.DataTable, a System.Collections.IEnumerable value (for example, System.Data.DataView or System.Array), a System.Windows.Forms.BindingSource (for the Microsoft Windows Form control) or a System.Web.UI.IDataSource (for the ASP.NET server control).

If this value is an instance of System.Collections.IEnumerable, all elements in the collection must be of the same type, and names of the public properties of the element (as retrieved by the System.ComponentModel.TypeDescriptor.GetProperties() method) must match the field names of the corresponding report data source.

Value may also be an instance of System.Type. In this case, an instance of the supplied type is automatically created and added to an automatically created collection.

If the type of Value is not any of the aforementioned types, it is added to an automatically created collection.

See Also

Reference

ReportDataSource Class
ReportDataSource Members
Microsoft.Reporting.WebForms Namespace