Hello everyone!
Currently I'm testing xamGrid. At least, I think I do... but I'm doing something wrong and I don't know what.
I'm trying to define hierarchy like this one:
I group
I.I group
I.II group
I process
I.I process
I.I.I process
It should be really easy, but I made a mistake :(
For test purposes I've generated data in code. I will attach 3 main files, and if someone can help, please tell me what is the problem.
Thank you!
Hi,
Just set your ColumnLayout key to the property that it each ColumnLayout should be bound to.
In the case of the sample code you posted, you would use SubGroups:
<ig:ColumnLayout Key="Subgroups" TargetTypeName="ActivityGroup">
Hope this helps,
-SteveZ
Hi Stephen,
Could you please answer me one more question?
As you could see in code that I sent, ActivityGroup has IDActivityType. Whith DataGrid, and ListBox I can easily filter DataGrid, based on selection in ListBox. Part of xaml code is as follows:
<ListBox Grid.Row="1" Name="listBox1" ItemsSource="{Binding Path=ActivityTypes}" DisplayMemberPath="ActivityTypeTerm" SelectedItem="{Binding Path=CurrentType, Mode=TwoWay}" Margin="0,0,0,307" Grid.RowSpan="2" />
<sdk:DataGrid AutoGenerateColumns="False" Grid.Column="1" Grid.Row="1" ItemsSource="{Binding Path=FilteredActivityGroups}" SelectedItem="{Binding Path=CurrentType, Mode=TwoWay}" Name="filteredActivityGroupsDataGrid" RowDetailsVisibilityMode="VisibleWhenSelected">
I now that I can do the same thing using ListBox and xamGrid, but I don't know how. Could you help me with this one, please?
- Lucky
Thank you Stephen, thank you! :)
I didn't even remember to check "Key"... it works now.