Задайте вопросЗадайте вопрос
 

ОтвеченоHow can I sort a CollectionViewSource by a numeric string value.

  • 4 июля 2009 г. 15:49Jeffrey Cumpsty Медали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     

    i have a collection view source which is populated with invoice items.

    Each invoice item contains an invoice reference which is stored in the database as a varchar, although it is a numeric value.

    I am using Linq to return my objects from the database and a converter to bind everything to the CVS.  I need to sort by the invoice reference but it is sorting as string

    (ie. 1, 100, 2, 200, 3, 300)

    How can I apply a converter to the the sort parameter before if performs the sort?

Ответы

Все ответы