944,084 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 4219
  • C# RSS
Sep 28th, 2005
0

Need help in Paging

Expand Post »
Hi frnds,

i am using paging in data display.
but, it allows me to select only one way to go the next/prev page...i can select either numeric paging or the prev-next links.

what do i do if i want to use both at the same time ???

it shld look like below
< prev 1 2 3... next >
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Prasadd is offline Offline
7 posts
since Jul 2005
Sep 28th, 2005
0

Re: Need help in Paging

doesn't come with that built in. To get you started, you are going to need to do something like:

C# Syntax (Toggle Plain Text)
  1. private void DataGrid1_ItemCreated(object sender, DataGridItemEventArgs e) {
  2. if ( e.Item.ItemType == ListItemType.Pager && DataGrid1.CurrentPageIndex > 0) {
  3.  
  4.  
  5.  
  6. LinkButton lbTemp = new LinkButton();
  7. lbTemp.Text = "<";
  8. lbTemp.Click +=new EventHandler(lbTemp_Click);
  9. e.Item.Controls[0].Controls.AddAt(0,lbTemp);
  10.  
  11.  
  12. }
  13. }
Reputation Points: 14
Solved Threads: 19
Posting Pro in Training
campkev is offline Offline
484 posts
since Jul 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: how do i update to Access db?
Next Thread in C# Forum Timeline: plese help





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC