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
50
GroupByRecord Issue
posted

Hi, I'm using XamDataGrid recently. It works great except for a grouping issue. I group the data records by a field named "Section". I put the grouping setting in .xaml file like the following

<igDP: XamDataGrid>

  <igDP:XamDataGrid.FieldLayouts>

    <igDP:FieldLayout>

      <igDP:Field Name="Section" Visibility="Collapsed">

        <igDP:Field.Settings>

          <igDP:FieldSettings AllowHiding="Never"/>

        </igDP:Field.Settings>

      </igDP:Field>

      <igDP:FieldLayout.SortedFields>

        <igDP:FieldSortDescription IsGroupBy="True" Direction="Ascending" FieldName="Section">

      </igDP:FieldLayout.SortedFields>

    </igDP:FieldLayout>

  </igDP:XamDataGrid.FieldLayouts>

</igDP: XamDataGrid>

It works fine when I set the datasource of the datagrid for the first time. However, when I set the datasource to null and assign a new datasource (its structure is the same as the previous one) to the datagrid, the data records will not be grouped. I looped through the records property of the datagrid and found no groupbyrecord. But the info within XamDataGrid.FieldLayouts[0].SortedFields[0] remains the same. Can anyone tell me what is the probable cause.

Parents Reply Children
No Data