E
ethem
Hi there,
how to sort a generic list?
I'm using generics (class definition) and binding to this generics
class.
so the factory returns a dictionary <key, genericclass>
e.g.
key genericclass
1000 1000-companynameA-cityA-countryA-PhoneA-FaxA (6 property
definition in the class)
1001 1001-companynameB-cityB-countryB-PhoneB-FaxB
etc.
I'm binding to asp:gridview and asp:listview. it works....
but I won't to sort when the header is clicked. How can I achieve
this? e.g. Country is clicked... I get in argument the value
country.... but how can I sort the generic list ASC/DESC to country?
I did search on 'sort on generics list ' but not find really the
answer...
any help or direction is appreciated....
thanks
how to sort a generic list?
I'm using generics (class definition) and binding to this generics
class.
so the factory returns a dictionary <key, genericclass>
e.g.
key genericclass
1000 1000-companynameA-cityA-countryA-PhoneA-FaxA (6 property
definition in the class)
1001 1001-companynameB-cityB-countryB-PhoneB-FaxB
etc.
I'm binding to asp:gridview and asp:listview. it works....
but I won't to sort when the header is clicked. How can I achieve
this? e.g. Country is clicked... I get in argument the value
country.... but how can I sort the generic list ASC/DESC to country?
I did search on 'sort on generics list ' but not find really the
answer...
any help or direction is appreciated....
thanks