Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Gridview, DataList or Repeater

Reply
Thread Tools

Gridview, DataList or Repeater

 
 
shapper
Guest
Posts: n/a
 
      10-04-2006
Hello,

I need to display a list of records.
Each record has 3 columns:
An image, a Label and a Hyperlink.

I don't need paging or even raise events.

All I need is to display the data as I described.

Which data control should I use?

Gridview, DataList or Repeater?

Thanks,
Miguel

 
Reply With Quote
 
 
 
 
ReyN
Guest
Posts: n/a
 
      10-04-2006

you can use any of the three, but the GridView would be easier to use
for that. With the DataList and Repeater, you'd have to set up
templates.

 
Reply With Quote
 
 
 
 
shapper
Guest
Posts: n/a
 
      10-04-2006
I forgot to say one thing:

Each column has a different control.
First Column: Custom Control
Second Column: Label
Third Column: Hyperlink

Can I add the custom control to my GridView?
And can I do it in runtime?

I know how to create a repeater in runtime but I never did it for a
GridView.

Do you know any example on the internet?

Thanks,
Miguel

ReyN wrote:
> you can use any of the three, but the GridView would be easier to use
> for that. With the DataList and Repeater, you'd have to set up
> templates.


 
Reply With Quote
 
ReyN
Guest
Posts: n/a
 
      10-04-2006

in that case, you'd have to use a TemplateField

http://authors.aspalliance.com/aspxt...ogridview.aspx

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
repeater inside a repeater problem. uncensored ASP .Net 0 10-25-2006 06:10 PM
Repeater inside a repeater....how? voidfill3d@yahoo.com ASP .Net 1 08-10-2005 01:58 PM
Repeater Using Javascript Referencing a Column in the Repeater rwoo_98@yahoo.com ASP .Net 0 02-26-2005 05:02 PM
Repeater control with nested repeater chris.reed@digus.com ASP .Net 0 02-11-2005 05:10 PM
Setting up a datalist control - Item_DataBound for a datalist in a datalist Nevyn Twyll ASP .Net 8 09-09-2004 10:13 PM



Advertisments