ASP.Net - Repeater Control - 3 Columns - Unlimited Rows

P

Peggy

Hi,

I wanna list my stocks in a web page according to search result, this
listing must be in a (3 columns and unlimited size) table, what I wanna list
in a cell is stock name, stock price and stock picture

I tried repeater control but it list data only row by row I think, I couldnt
make first 3 datarow in first row, and second three row in second row,

Data comes from a table, and paging is a must, Something like this >>>

------------------------------------------------------------------------------
Stocks
------------------------------------------------------------------------------
Stock 1 Stock 2 Stock 3
10,56 USD 20 USD 30,11 USD
Picture Picture Picture

Stock 4 Stock 5 Stock 6
10,56 USD 20 USD 30,11 USD
Picture Picture Picture

Stock 7 Stock 8 Stock 9
10,56 USD 20 USD 30,11 USD
Picture Picture Picture
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,


Peggy said:
Hi,

I wanna list my stocks in a web page according to search result, this
listing must be in a (3 columns and unlimited size) table, what I wanna
list in a cell is stock name, stock price and stock picture

You will have to convert your data source to the way you want to see it, a
quick and dirty solution would be to create one class with three properties,
one per stock and create a list of them, bind the repeater to that list.
I tried repeater control but it list data only row by row I think, I
couldnt make first 3 datarow in first row, and second three row in second
row,

Data comes from a table, and paging is a must, Something like this >>>

IIRC repeater does not implement paging, you would have to implement it,
(not rocket science anyway) or you could use a Datagris instead
 

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

Top