Multiple columns in List box control

2019-06-20 19:42发布

how can i display two columns in a list box?

9条回答
趁早两清
2楼-- · 2019-06-20 20:23

A list box wasn't designed to display multi-column data. Even the Windows Forms version doesn't directly support that kind of data display.

Your requirements aren't clear, but the simplest way to go would be to use a GridView control. It gives you a lot of functionality out of the box, and you can expand it to more columns very easily. If you need more control over the look or functionality, you can use a DataList instead.

To get the scrolling ability, you can either use a scrolling <div> or simply use the pagination mechanism of the GridView if that's appropriate.

查看更多
叼着烟拽天下
4楼-- · 2019-06-20 20:28

Looks like you should write your own control, or you can use the listview control.

查看更多
登录 后发表回答