views:

362

answers:

1

I have a Listbox with multiple columns and bound to a data source (XML) as shown below.

<ListBox x:Name="lstBox1" Background="#FFC5EFFD" Margin="7,50,10,15" ItemTemplate="{StaticResource ItemsPanelTemplate1}" ItemsSource="{Binding BPICollection}" BorderThickness="0"/>

I'm trying to figure out how to sort a particular column in the listbox.

A: 

It sounds like the datagrid might be more appropriate for your situation. It has columns, and can sort by individual columns. It is very customizable. If you do want to use a listbox, could you post the template and what the datasource looks like?

Chuck Hays