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

Can you edit data in repeater control? How?

567


Please explain what is a delegate?

691


What does msil do?

550


What is .net3.0 and .net3.5?

557


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

560






What is marshling?

584


What is RCW (Run time Callable Wrappers)?

1958


Whate are resource files?

607


What is the difference between asp.net & vb.net and explain architecture?

538


Why you want to leave your previous company.

1591


What is the root class in .net?

656


Please explain when should you use .net web forms over asp.net mvc?

546


What are the properties of ADO.NET?

642


Please explain what is the difference between a class and an object?

572


How does cas works?

577