Hi I have setup following kind of xamGrid in xaml:
<ig:XamGrid x:Name="dataGrid" AutoGenerateColumns="False" ColumnWidth="*" ItemsSource="{Binding EmployeeDepartments}"> <ig:XamGrid.Columns> <ig:TextColumn Key="FirstName"> <ig:TextColumn.HeaderTemplate> <DataTemplate> <TextBlock Text="{Binding Path=FirstName,Source={StaticResource localizedStrings}}"/> </DataTemplate> </ig:TextColumn.HeaderTemplate> </ig:TextColumn> <ig:TextColumn Key="LastName"> <ig:TextColumn.HeaderTemplate> <DataTemplate> <TextBlock Text="{Binding Path=LastName,Source={StaticResource localizedStrings}}"/> </DataTemplate> </ig:TextColumn.HeaderTemplate> </ig:TextColumn> </ig:XamGrid.Columns> <ig:XamGrid.EditingSettings> <ig:EditingSettings AllowEditing="Row" IsMouseActionEditingEnabled="DoubleClick" IsEnterKeyEditingEnabled="True" IsF2EditingEnabled="True" IsOnCellActiveEditingEnabled="False" /> </ig:XamGrid.EditingSettings></ig:XamGrid>
data for this grid is loaded from EmployeeDepartments which is EntitySet loaded from wcf ria service by default as IEnumerable<EmployeeDepartments> in View Model.
But when run the app, not data showing up, then I check the data in VM with debug mode, it's fine, all data already loaded.
Can't figure it out why. Help please.
It's working. Thanks.
Good idea. Will try.
What gets displayed when you give AutogenerateColumns to true? Does it show the grid
By any chance are you having normal grid on page
Try commenting it
Hi,
Does the collection implement INotifyPropertChanged? B/c in order for us to be notified of updates it needs to implement that interface.
Do you have a sample that you can upload that i can take a look at?
Thanks,
-SteveZ
If I change the grid back to SL DataGrid, everything is fine. So why xamGrid can't display the data in such simple case?