billsecond
billsecond

Reputation: 612

Alphanumeric Sort Datagrid - Reusable Worry Free Code

Friends,

I have about 20-30 datagrids that have different data on all of them. Is there a way that I can sort a datagrid with out writing custom code in each sorting event?

I want some code that all i need to do is pass it in a name of a datagrid, and perhaps a direction.

I don't want to make a call back to the database, but instead, i have a List Each Datagrid will have a different Generics List Value.

Bill.

Upvotes: 0

Views: 153

Answers (1)

Icarus
Icarus

Reputation: 63956

Yes, use LinqDataSource on all of them and paging and sorting will be taken care of for you without writing a single line of code.

Upvotes: 1

Related Questions