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

Signature
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
***************************
Think Outside the Box!
***************************
> 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
[quoted text clipped - 3 lines]
>
> Many thanks.
Andrew Chalk - 24 Oct 2005 14:48 GMT
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
> You will have to hand code this functionality, as there is no built in
> mechanism, like the DataGrid.
[quoted text clipped - 11 lines]
>>
>> Many thanks.
Andrew there ia an example here at:-
http://aspnet.4guysfromrolla.com/articles/020905-1.aspx
Hope that helps
Patrick
> 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
[quoted text clipped - 3 lines]
>
> Many thanks.
Andrew Chalk - 24 Oct 2005 14:49 GMT
Thanks, I'll take a look.
Andrew
> Andrew there ia an example here at:-
> http://aspnet.4guysfromrolla.com/articles/020905-1.aspx
[quoted text clipped - 10 lines]
>>
>> Many thanks.