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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

losing sort order for datalist

Status
Not open for further replies.

drew10

Programmer
Feb 26, 2002
123
US
I have a datalist that I want to allow pagination and sorting. To do sorting, I must use a dataview. Then to do pagination, I must put the dataview into a datatable, and break the datatable into seperate pages by row index. The problem is that when I try to break the sorted dataview.table into rows, the original index for each row is still present, not the new sorted index for each row!!! Thus when I add the sorted rows to each page, the original order still appears.

dv = ds.tables(0).defaultview
dv.sort = sortexpression
dim temp as datarow = dv.table.rows(0)

temp still returns the defaultview index???


Has anyone else dealt with this problem?

Thanks,
drew
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top