开发者

Double-columned in ASP.NET

开发者 https://www.devze.com 2023-01-08 19:49 出处:网络
A dataset w开发者_JAVA技巧ill be shown in 2 different columns. Can I use for this the repeater-control or is there a more appropriate control ?

A dataset w开发者_JAVA技巧ill be shown in 2 different columns. Can I use for this the repeater-control or is there a more appropriate control ? Does anyone know a good example?


You can use a Repeater, a GridView or a DataList. The easiest way to show a dataset in columns is using a GridView.

http://msdn.microsoft.com/en-us/library/dd548005.aspx


The datalist control is a light weight control but has the advantage over the repeater control with 2 interesting properties:

  • RepeatColums
  • RepeatDirection

The ListView control is also a valuable alternative but it's more heavy weight so if you don't need all the extra fluff then I suggest the DataList control.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号