Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
585
Data not showing up in xamGrid
posted

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.

 

 

Parents
No Data
Reply
  • 2690
    posted

    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

Children