What is PageIndex in DataGrid?What is the event used in the
Datagrid for while moving from one page to another page in
the Grid?write code for it

Answers were Sorted based on User's Feedback



What is PageIndex in DataGrid?What is the event used in the Datagrid for while moving from one page..

Answer / gourav

Page index is to split the DataGrid in number of pages.
Code for paging is write in pageindexchanging event
gridview1.pageindex=e.newpageindex;

Is This Answer Correct ?    4 Yes 0 No

What is PageIndex in DataGrid?What is the event used in the Datagrid for while moving from one page..

Answer / judy prasheela

protected void DataGrid1_PageIndexChanged(object source, DataGridPageChangedEventArgs e)
{

DataGrid1.CurrentPageIndex = e.NewPageIndex;
DataGrid1.DataBind();

}

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Dot Net General Interview Questions

What is the difference between response.redirect & server.transfer?

0 Answers  


Compare client server application with n-tier application

0 Answers  


Can you configure a .NET Remoting object via XML file?

1 Answers  


Describe ways of cleaning up objects.

2 Answers   Wipro,


WHAT IS .net

3 Answers  






What is a variable of implicit type and what is its scope?

0 Answers  


<li id="Accomodation" runat="server" visible="false"><a href="../searchaccommodation.aspx?">Accomm</a></li> i have this code.now on server side i want to compare this id(Accommodation) value and want id i.e.Accommodation.visible=true;

0 Answers  


Explain how garbage collection works?

0 Answers  


What is the concept of inheritance in .net?

0 Answers  


What is equivalent for regsvr32 exe in .net ?

0 Answers  


Explain what is the difference between odbc and ado?

0 Answers  


What is MSIL, IL, CTS?

3 Answers  


Categories