Default Paging or Custom paging

Posted by Tushar under WPF on 12/14/2010 | Points: 10 | Views : 3251 | Status : [Member] | Replies : 4
hi
I am using .net freamwork 3.5.

I want do the paging on toolkit datagrid (.net 3.5).

can i do the Default paging on toolkit datagrid ? if yes then How ?

or

if default paging is not possible then how to do custome paging on toolkit datagrid (.net 3.5) ?

pls give me good link....

pls help me out.....

Advance thanks

have nice day....




Responses

Posted by: Ud123 on: 12/14/2010 [Member] Starter | Points: 25

Up
0
Down
i am confused whether u want paging or page indexing,
thats why i am sending u code for page indexing.

protected void grid_PageIndexChanging(object sender, GridViewPageEventArgs e)
{

clsgetdata obj = new clsgetdata();

ds = obj .GetData();
if (ds.Tables[0].Rows.Count > 0)
{
grid.PageIndex = e.NewPageIndex;
grid.DataSource = ds;
grid.DataBind();
}



}

getdata is a function which is in class clsgetdata()

Tushar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Chvrsri on: 12/14/2010 [Member] [Moderator] [MVP] Silver | Points: 25

Up
0
Down
Hi Tushar,
What do meant by custom paging ?

Do you want any buttons or links like next,previous rather than default numbers ?

If Yes go through this :
http://www.codeguruindia.com/tutorials/post/Grid-Control-Custom-Paging-Numeric-with-Next-Previous-buttons.aspx

Thanks,
Radha Srikanth

Tushar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Tushar on: 12/14/2010 [Member] Starter | Points: 25

Up
0
Down
hi Chvrsri and Ud123

is there any default property of datagrid for Paging like we have in silverlight ?
or
I Want Paging on Datagrid (toolkit) using Next,Previous,Last,First button in WPF 3.5
I want Paging not page indexing in WPF 3.5

pls help me....
have nice day....





Tushar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikanbarasan on: 1/9/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Hi Tushar,

There is a default way to do paging in .net 3.5 and also u can do a custom paging as shown in the below article...

http://www.c-sharpcorner.com/UploadFile/amit_agrl/PagingInASPNet11262005011702AM/PagingInASPNet.aspx

http://www.c-sharpcorner.com/UploadFile/sd_patel/CustomPagingInDataGrid11232005232703PM/CustomPagingInDataGrid.aspx

Thanks
Karthik
www.f5Debug.net

Tushar, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response