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 security mechanisms to enforce for Authenticating and authorizing the users?

1 Answers  


I'm having some trouble with cas. How can I troubleshoot the problem?

0 Answers  


what are the controls used to upload a file from client to server?

4 Answers  


Difference between Debugging and tracing in .net

1 Answers  


Explain the purpose of Remoting in .NET?

0 Answers   Petranics Solutions,


What is Datatype Conversion in Vb.net?

1 Answers  


What is the raise event used for?

4 Answers   Wipro,


How different are interface and abstract class in .Net?

2 Answers  


What relationship is between a process, application domain, and application?

0 Answers  


What is garbage collection in .net? Explain the garbage collection process?

0 Answers  


What is manifest in .net?

0 Answers  


Explain me what is the difference between an abstract class and an interface?

0 Answers  


Categories