473,387 Members | 1,542 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,387 software developers and data experts.

datalist custom paging

Hi,

I am trying to implement the custom paging in the datalist in this format:
<< Prev 1,2,3,4,5 Next >>. Does anyone knows how to do this.

Thanks in advance.

Clint
Nov 18 '05 #1
3 5034
I think your referring to the DataGrid not the DataList? Custom paging is
just what it says it is... custom. You'll have to implement to code to
accomplish your paging. Set the pager to be invisible - i.e. <PagerStyle
Visible="false" />

Have a look at a couple of articles online to try and get your custom paging
solution. A couple I've used myself are
http://www.dotnetjunkies.com/Tutoria...B871F967F.dcik
http://www.4guysfromrolla.com/webtech/082901-1.shtml
http://www.dotnetjunkies.com/Tutoria...1BA3A12DD.dcik

"Clint" <cc*******@yahoo.com> wrote in message
news:cf**************************@posting.google.c om...
Hi,

I am trying to implement the custom paging in the datalist in this format:
<< Prev 1,2,3,4,5 Next >>. Does anyone knows how to do this.

Thanks in advance.

Clint

Nov 18 '05 #2

Thanks for the reply. I want to use the DataList to achieve this
because I have a linkbutton on the first row of the datalist control
that when it's clicked, I can hide or show the some of the contents from
a datarow. I saw a posting in google that someone did this with a
datalist, but he didn't post his source codes or how he fixed it.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #3
Hi,

You could handle the ItemCreated event and check if: e.Item.ItemType ==
ListItemType.Pager.

If it is, you are creating the pager controls, here you can inspect and
modify the controls collection using e.Item.Controls property. You can
remove and reinsert these controls and apply any formatting you like.
--
Ben
http://bitarray.co.uk/ben

"Clint Chin" <cc*******@yahoo.com> wrote in message
news:uQ**************@TK2MSFTNGP10.phx.gbl...

Thanks for the reply. I want to use the DataList to achieve this
because I have a linkbutton on the first row of the datalist control
that when it's clicked, I can hide or show the some of the contents from
a datarow. I saw a posting in google that someone did this with a
datalist, but he didn't post his source codes or how he fixed it.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #4

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

Similar topics

0
by: Andy | last post by:
Hello Guys: I am not sure if this is where the post belongs or not. I am using C# to write an ASP.Net page. I have an issue where I want to use a DataGrid, becasue of the Paging aspect, but...
3
by: CVerma | last post by:
Hi, I have an embedded datagrid within a datalist. I am not able to perfrom paging in the datagrid. Any ideas? Here is my code: Here is my Simplegrid.cs file: using System; using...
2
by: David | last post by:
Hello. How can I enable and manage paging capability on DataList control like DataGrid? Thank you.
5
by: Aahz | last post by:
Hello; I have an XML file with data which I show in DataList sucessfully, using DataSet Problem is that XML has about 30 records which is too much I need to show just first 10 ordered by date...
2
by: fa_2064 | last post by:
hi guys, how can i paging a datalist?is there a simple way or should be wrtite it's code manually???
0
by: needin4mation | last post by:
Hi, I have read many different datalist paging solutions, including using the ROW_NUMBER() with Sql Server 2005. I have googled various methods to use with lower versions of Sql Server. I...
4
by: 1333 | last post by:
Is it possible to have a Datalist with an Edit mode (<EditItemTemplate />) and custom paging? I can get <EditItemTemplate> mode and custom paging to work seperately but not together. I can delete...
0
by: | last post by:
I'm interested in paging a ASP.NET datalist. The ASP.NET datalist control does not natively support paging. I am binding an XmlDataSource (which is populated by entries in the filesystem) to the...
1
by: Aussie Rules | last post by:
Hi, Is it possible to have some sort of paging (prev/next page) feature with the data list. I have a datalist, that can display several hundred items, and I want to have say 20 to a page. ...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.