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

故事扮演 提交于 2019-12-01 14:16:54

问题


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


回答1:


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:

  • Microsoft.VisualBasic
  • Microsoft.VisualBasic.PowerPacks.Vs



回答2:


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.



来源:https://stackoverflow.com/questions/7442576/is-there-a-repeater-control-in-c-sharp-windows-form-in-visual-2010-or-an-alter

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!