Need help in Paging

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Jul 2005
Posts: 7
Reputation: Prasadd is an unknown quantity at this point 
Solved Threads: 0
Prasadd Prasadd is offline Offline
Newbie Poster

Need help in Paging

 
0
  #1
Sep 28th, 2005
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 >
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 483
Reputation: campkev is an unknown quantity at this point 
Solved Threads: 19
campkev campkev is offline Offline
Posting Pro in Training

Re: Need help in Paging

 
0
  #2
Sep 28th, 2005
doesn't come with that built in. To get you started, you are going to need to do something like:

  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. }
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C# Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC