Sorting a dataset displayed using a repeater

A

Andrew Chalk

I am displaying a dataset using a Repeater. I would like to allow the user
to click on a column header and have the data sort by that column. How do I
go about this?

Does anyone know of any example code?

Many thanks.
 
G

Guest

You will have to hand code this functionality, as there is no built in
mechanism, like the DataGrid.

To do so, the easiest method is link buttons in the header template that
have the field name and then resorting the DataTable in that order.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 
A

Andrew Chalk

Thanks. In that case can I get the advantage of Repeater (in this case
formatting of the data in each column) in a datagrid?

Andrew
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top