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.
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
It's working. Thanks.
Good idea. Will try.