954,514 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Need help in Paging

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 >

Prasadd
Newbie Poster
7 posts since Jul 2005
Reputation Points: 10
Solved Threads: 0
 

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

private void DataGrid1_ItemCreated(object sender, DataGridItemEventArgs e) {
			if ( e.Item.ItemType == ListItemType.Pager && DataGrid1.CurrentPageIndex > 0) {
	

				
						LinkButton lbTemp = new LinkButton();
						lbTemp.Text = "<";
						lbTemp.Click +=new EventHandler(lbTemp_Click);
						e.Item.Controls[0].Controls.AddAt(0,lbTemp);
					
				
			}
		}
campkev
Posting Pro in Training
484 posts since Jul 2005
Reputation Points: 14
Solved Threads: 19
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You