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

Explain how garbage collection works?

0 Answers  


Major role of CLR for CAS

2 Answers   Infosys,


What are channels in .NET Remoting?

2 Answers   Rolta,


Explain what is an application domain?

0 Answers  


What does jit compilation do in .net?

0 Answers  






How do you turn off cookies for one page in your site? Give an example.

0 Answers  


When developing a Windows service for .NET, which namespace do you typically look in for required classes?

1 Answers  


What is Assembly manifest? what all details the assembly manifest will contain.

2 Answers   Ksb,


What is implement a generic action in webapi?

0 Answers  


what will do to avoid prior case?

0 Answers  


What is the difference between imperative and interrogative code?

0 Answers  


Please explain what is a delegate?

0 Answers  


Categories