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 is a serviced component?

0 Answers  


What are the different types of remote object creation mode in .net?

0 Answers  


What are the benefits of Model-View-Controller Architecture?

1 Answers  


Explain the difference between vb and vb.net?

0 Answers  


What is .net debug & trace?

0 Answers  






What are object pooling and connection pooling and difference?

3 Answers   TCS,


Who is using .net core?

0 Answers  


What is a strategy pattern? Implement it.

1 Answers  


what are the Goals of the UIP Application Block?

1 Answers  


Explain me what is .net web service?

0 Answers  


What is use of ContextUtil class?

1 Answers  


How to get the number after decimal point in .net?

0 Answers  


Categories