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
40
Is XamGrid GroupBySettings compatible with AllowAddNewRow?
posted

I have a XamGrid v13.1:

        <ig:XamGrid AutoGenerateColumns="false" ItemsSource="{Binding Configs}" Name="TheGrid" >
            
            <ig:XamGrid.AddNewRowSettings>
                <ig:AddNewRowSettings AllowAddNewRow="Bottom" />
            </ig:XamGrid.AddNewRowSettings>   
            
            <ig:XamGrid.Columns>
                <ig:TextColumn Key="Asset" />
                <ig:TextColumn Key="Maturity"/>
            </ig:XamGrid.Columns>
            
        </ig:XamGrid>

At run time, the AddNewRow is visible, as expected.

Then, in code behind, I group by the Asset column:

        private void GroupByAsset()
        {
            Column assetColumn =
                TheGrid.Columns.DataColumns.FirstOrDefault(col => col.Key == "Asset");

            TheGrid.GroupBySettings.GroupByColumns.Add(assetColumn);

            assetColumn.IsGroupBy = true;
        }

Now at run time, the rows are grouped by Asset as expected, but the AddNewRow is no longer visible.

Is there a way to have the GroupBySettings and AllowAddNewRow functions simultaneously?

Parents
No Data
Reply Children
No Data