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?
Hello Kenn,
I am just checking if you need any further assistance on the matter.