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 are nullable types in .NET

1 Answers   TryTechnicals Pvt Ltd,


in hibernate, what is dirty reading?

1 Answers   IBM,


What is .net3.5?

1 Answers  


Define satelite assembly?

1 Answers  


Write Code for DataSet,Datareader,and by deleting the button gridview should be empty?

1 Answers  


Differences between dll and exe?

1 Answers  


Difference between machine.config and web.config?

1 Answers  


How to load the contents of an xml file into an xmldocument object?

1 Answers  


What is the use of common language runtime?

1 Answers  


Explain the purpose of Remoting in .NET?

1 Answers   Petranics Solutions,


Elements of CAS

1 Answers  


What is Event - Delegate? clear syntax for writing a event delegate

1 Answers  


Categories