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

Explain the difference between garbage collections in .net 4.0 and earlier versions?

0 Answers  


Is .net is a language?

0 Answers  


Explain the process of serialization in .NET?

0 Answers  


What is the difference between reference type and value type?

0 Answers  


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

0 Answers  






What is Global Assembly Cache (GAC) and what is the Purpose of it?

1 Answers  


Difference between Debugging and tracing in .net

1 Answers  


What are use of Cloud computing....?

1 Answers   CTS,


When displaying fonts, what is the difference between pixels, points and ems?

0 Answers  


With these events, why wouldn't microsoft combine invalidate and paint, so that you wouldn't have to tell it to repaint, and then to force it to repaint?

0 Answers  


What are the different types of Classes in .NET?

0 Answers   PUCIT,


what is GAC?

1 Answers   Manhattan,


Categories