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;
精彩评论