Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 225
  • Last Modified:

Repeater control with templated output

Hi,

I want to control the output from a repeater control sorting on one of the columns from my data source by date.  The repeater control outputs data using templates i.e. <ItemTemplate> etc.  Is there any way to control the output using this method, if not, what is an alternative method?  An example would be great!

Thanks.
0
jasoncpp
Asked:
jasoncpp
1 Solution
 
mrichmonCommented:
You can sort before you bind.  Or sort in the query that actually pulls the data.

To sort before databind you can create a dataview on top of your dataset.

Here is an example article:

Sorting Data Tables
http://www.csharphelp.com/archives4/archive617.html
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now