Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a repeater control in C# windows form in Visual 2010? Or an alternative?

Is there a repeater control in C# windows form in Visual 2010 ? Or an alternative ?

like image 551
JatSing Avatar asked Sep 16 '11 09:09

JatSing


People also ask

What is Repeater control?

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.

How do you apply a Repeater control style?

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.

What is Repeater control in asp net using C#?

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.

What is DataList in C#?

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.


2 Answers

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.

enter image description here

It will add a reference to following two assemblies:

  • Microsoft.VisualBasic
  • Microsoft.VisualBasic.PowerPacks.Vs
like image 106
Carlos Quintanilla Avatar answered Sep 28 '22 21:09

Carlos Quintanilla


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.

like image 30
LaGrandMere Avatar answered Sep 28 '22 19:09

LaGrandMere