Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
i want to show records in block format
 
the record should look like 3*8 table
can i use grid view to do so?
 
or is there any other way?
Posted 28-Dec-12 1:10am
Edited 29-Dec-12 0:23am
Jibesh16.5K
v2
Comments
Orcun Iyigun at 28-Dec-12 7:42am
   
Yes you can use a gridview...
kishanthakar at 29-Dec-12 1:08am
   
i want to show records like below link
 
http://www.apollopharmacy.in/shop
 
can this be done with gridview?

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Yes, you can either use Gridview or Repeater.
 

Use DataList, with RepeatColumns
<asp:DataList ID="DataList1" runat="server" RepeatColumns="4" RepeatDirection="Horizontal">
</asp:DataList>
  Permalink  
v2
Comments
kishanthakar at 29-Dec-12 1:08am
   
i want to show records like below link
 
http://www.apollopharmacy.in/shop
 
can this be done with gridview?
Sheikh Muhammad Haris at 29-Dec-12 8:29am
   
For this case, Use DataList instead. Its RepeatColumns property will allow you to set fixed integer value.
kishanthakar at 2-Jan-13 5:26am
   
Thank you sir
 
but how can do paging support in datalist
 
i have approx 500 records and i want to show only 18 products on page can we do it with data list?
Sheikh Muhammad Haris at 2-Jan-13 7:41am
   
Try PageDataSource to apply paging in DataList. Google it, you will find a good tutorial.
 
follow the links below
 
http://www.c-sharpcorner.com/UploadFile/718fc8/paging-in-datalist-control/
 
http://stackoverflow.com/questions/9836830/how-to-set-paging-in-datalist-control-in-asp-net
 
http://www.codeproject.com/Articles/15567/Custom-Paging-for-DataList
 
http://forums.asp.net/t/1418412.aspx/1
kishanthakar at 21-Feb-13 4:43am
   
Thank you :-)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 349
1 Nirav Prabtani 268
2 Richard Deeming 215
3 CHill60 170
4 _Amy 145
0 OriginalGriff 8,104
1 Sergey Alexandrovich Kryukov 7,067
2 Maciej Los 4,039
3 Peter Leow 3,738
4 CHill60 2,912


Advertise | Privacy | Mobile
Web02 | 2.8.140721.1 | Last Updated 29 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100