Is there a repeater control in C# windows form in

2019-02-21 13:13发布

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

2条回答
虎瘦雄心在
2楼-- · 2019-02-21 13:44

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.

查看更多
ゆ 、 Hurt°
3楼-- · 2019-02-21 13:58

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
查看更多
登录 后发表回答