Gridview Page Change

Posted by Britsouls under ASP.NET on 7/3/2012 | Points: 10 | Views : 1249 | Status : [Member] | Replies : 3
hi, its very urgent.
in gridview first row value is 0
what is the row value on 2nd page of gridview, when allowpaging is true.
i want to extend row value on 2nd page..is it possible?




Responses

Posted by: Muralidosscm on: 7/3/2012 [Member] Starter | Points: 25

Up
0
Down
It is possible............

Regards
Muralidoss M

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

Posted by: Britsouls on: 7/3/2012 [Member] Starter | Points: 25

Up
0
Down
how can i do.plz explain me..

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

Posted by: Muralidosscm on: 7/3/2012 [Member] Starter | Points: 25

Up
0
Down
First get the value from the backend to the datatable........... like

DataTable dt = new DataTable();
dt=// your database table value.

DataColumn DC1 = new DataColumn("lbl_AutoID");
DC1 .AutoIncrement = true;
DC1 .AutoIncrementSeed = 1;
DC1 .AutoIncrementStep = 1;

dt.Columns.Add(DC1 );

Then bind the datatable values to the gridview
gridview.datasource =dt
gridview.databind();


dont copy this code because im directly wrote there........


Regards
Muralidoss M

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

Login to post response