|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
How to: Display Unbound Data in a DataRepeater Control (Visual Studio)
Updated: July 2008
You must also have at least one bound control on the DataRepeater or nothing will be displayed at run time.
To add unbound controls to a DataRepeater
Drag a DataRepeater control from the Visual Basic PowerPacks tab in the Toolbox to a form or container control.
Drag the sizing and position handles to size and position the control.
You can also size and position the control by changing the Size and Position properties in the Properties window.
Add at least one data-bound control to the DataRepeater control. For more information, see How to: Display Bound Data in a DataRepeater Control (Visual Studio).
Drag a control from the Toolbox onto the item template region of the DataRepeater control.
Note that the control has two rectangular regions. The inner region is the item template; controls added to the template will be repeated in each item in the DataRepeater control at run time. The outer region is the viewport, where the items will be displayed; controls that are added to this region will not be displayed at run time.