473,385 Members | 2,162 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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

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
------------------------------------------------------------------------------
1 - 2 - 3 - 4 - 5 - 6 - 7 - Paging - Next....
------------------------------------------------------------------------------

How can I do this ? Repeater o anoher way ?

Thank you
May 17 '07 #1
1 3858
Hi,
"Peggy" <Pe***@aaa.aawrote in message
news:un**************@TK2MSFTNGP06.phx.gbl...
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
May 17 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jim French | last post by:
I have a page that takes a comma delimited string and needs to bind to a Repeater control. The string is split into an Array, and each value is put into a DataBase query via a For Each loop. The...
4
by: MattB | last post by:
This is just a rephrased version of a question I posted earlier. I think I'm closer now, so it seemed worthy of a new (more specific) post. In my repeater I'm dynamically creating text boxes, so...
0
by: Michael | last post by:
I've seen several posts relating to this problem, and tried EnableViewState="False", but it does not work for me. A twist in my problem is that I am adding the templates for the repeater...
8
by: I am Sam | last post by:
Hi everyone, This problem is making me old. I don't want to get any older. I have a multi-nested repeater control as follows: <asp:Repeater ID="clubRep1" Runat="server">...
1
by: ratnakarp | last post by:
Hi, I have a search text box. The user enters the value in the text box and click on enter button. In code behind on button click i'm writing the code to get the values from the database and...
4
by: Dennis E. Jones, Jr. | last post by:
I'm creating a dynamic control for each row in a REPEATER based on database values. ItemDataBound creates the control for the initial load (not postback), but I cannot get the control recreated...
3
by: renil | last post by:
I have a repeater control that displays info. from a datatable. Each row in the repeater has a checkbox. Also, I have a delete linkbutton outside the repeater control. What I'm trying to do when...
1
by: Peggy | last post by:
Hello 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...
3
by: Emma Middlebrook | last post by:
Hi there, I've been trying to implement a repeater control in an ASP.NET 2 page but I can't seem to get the layout exactly how I want and I'm not sure if it's something that I am doing wrong or...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.