共用方式為


DataRepeater.DataSource Property

Gets or sets the data source for which the DataRepeater is displaying data.

Namespace:  Microsoft.VisualBasic.PowerPacks
Assembly:  Microsoft.VisualBasic.PowerPacks.Vs (in Microsoft.VisualBasic.PowerPacks.Vs.dll)

Syntax

'宣告
Public Property DataSource As Object
    Get
    Set
public Object DataSource { get; set; }
public:
property Object^ DataSource {
    Object^ get ();
    void set (Object^ value);
}
member DataSource : Object with get, set
function get DataSource () : Object
function set DataSource (value : Object)

Property Value

Type: System.Object
The object that contains data for the DataRepeater to display.

Remarks

Setting the DataSource property of the DataRepeater control has no effect. The DataSource properties of the child controls determine what is displayed at run time.

.NET Framework Security

See Also

Reference

DataRepeater Class

Microsoft.VisualBasic.PowerPacks Namespace

Other Resources

Introduction to the DataRepeater Control (Visual Studio)

How to: Display Bound Data in a DataRepeater Control (Visual Studio)