display 3 columns of 50 rows in stead of 1 column per row inGridview/Repeater/Listview/Datalist

E

ethem

Hi there,

I may have 3 columns in a table or list<name>).
ID - INTeger
Name - String
AgeGt18 Checkbox (true false)

a normal databindercontorl like Gridview/Repeater/Listview/Datalist
displays per row.
But I would like to display 3 columns.
e.g.
ID Name AgeGt18 ID Name AgeGt18
ID Name AgeGt18
1 Michael True 4 Michael3
True 7 Michael9 True
2 Frans l False 5 Michael1
False 8 Michae14l True
3 Frans l False 6 Michae9l
True 9 Michael99 True
.......


I know datalist has repeat direction etc... but where do you say 3
columns and 50 lines....? so every column can have 50 lines (rows)..
so in face 3 columns per row....

thanks
 
A

Ashok Kunwar Singh

To achive this functionality, you can use datalist control with specifying repeatcolumns property.
ex.

<asp:datalist id="myList" runat="server"
repeatcolumns=3 repeatdirection="horizontal">


Regards,
Ashok Kunwar Singh
http://GetAllDealz.com/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top