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 difference between inline and code behind which is best in a loosely coupled solution?

2277


How to implement getcommon method in class a? Are you seeing any problem in the implementation?

711


What's the use of system.diagnostics.process class in .net?

664


Do you know what is lambda expressions in c#?

634


Explain what is the difference between odbc and ado?

597






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

579


Explain what is the reason of occurring overflow-underflow arithmetic exception error, it shows error message when we run our program by adding control?

596


Write the .net syntax for 'for loop'?

656


Tell us what is the difference between struct and class?

588


Can a try block have more than one catch block?

709


How viewstate is being formed and how it is stored on client in .net?

629


Why did they call it .net?

668


What do you mean by Driver Script?

707


Explain the different parts of an assembly?

671


What are the different types of Classes in .NET?

705