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
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