Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is it possible to change sequence of records on one page?

Status
Not open for further replies.

desaivar

Programmer
Jul 6, 2009
12
0
0
US
Hi there,

Is it possible to change sequence of records on one page of gridview from the code behind page(such as data bound event of gridview etc.)?

Here is the details of populating gridview.
I am binding data to the gridview through generic collections, populating generic collection through store procedure. I have applied custom paging on gridview.

On one page I want to change records position as per the criteria, some records at the start and some at the end on the page.

Is it possible to do that?

I am struggling with this issue since from long time. It's urgent now. I would really appreciate your help.

Thanks in advance.

 
If it is only one specific page, then apply sorting based on the page number that you are currently on. Try the pageIndexChanged or pageIndexChanging event on the grid.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top