Is there a repeater control in C# windows form in Visual 2010 ? Or an alternative ?
The Repeater control allows you to split markup tags across the templates. To create a table using templates, include the begin table tag ( <table> ) in the HeaderTemplate, a single table row tag ( <tr> ) in the ItemTemplate, and the end table tag ( </table> ) in the FooterTemplate.
To aplly the style to the table, you can give the table (or any HTML elements) an ID and run at server. Every control that has ID and run at server can be accessed from the code behind.
The Repeater control is used to display a repeated list of items that are bound to the control. The Repeater control may be bound to a database table, an XML file, or another list of items. Repeater is a Data Bind Control. Data Bind Controls are container controls.
DataList is a Databound control to display and manipulate data in a web application. It is a composite control that can combine other ASP.Net controls and it is present in the form. The DataList appearance is controlled by its template fields.
Yes there is. From the Visual Studio Toolbox go to section Visual Basic PowerPacks and there you will find a DataRepeater control. Even if it says VB PowerPack it works with C# as well.
It will add a reference to following two assemblies:
Original answer : Repeater in .NET Framework 4. Wrong, thanks for the comments, only works in WebForms, not in WinForms.
What you could use is UserControl, create your template, and use it as a Repeater.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With