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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe the compilation process for .net code?

833


How to instantiate a delegate?

1853


In code behind class, name the type of code found. Is it the server side code or client side code?

1011


What is an anonymous method and how is it different from a lambda expression?

749


What are nullable types in .NET

840


What are the new thee features of com+ services, which are not there in com (mts)?

717


What is close method? How its different from finalize and dispose?

759


What's the problem with .net generics?

756


How can I find out what the garbage collector is doing?

735


What are the differences between com architecture and.net architecture?

777


Explain what is a delegate?

795


What do the terms “boxing” and “unboxing” mean?

738


Explain the difference between static page and dynamic page?

733


What is difference between .net and .net core?

735


Explain the code behind wors and contrast that using the inline style.

775