开发者

Formatting datalist display

I am having problems to format datalist in an appropriate way. I have got an whose width is set to 733px, What I want is to 开发者_JS百科to display the datalist within that width , if the item is exceeding the width it should go to next line, currently it is going out of the width ....., How can i control the datalist to show for instance 4 per line then go to next line. I have used RepeatDirection="Horizontal" in my datalist.

Any help will be appreciated.


Take a look onto DataList.RepeatColumns property:

DataList1.RepeatColumns = 4;
DataList1.RepeatDirection = RepeatDirection.Horizontal;
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜