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
350
Xamgrid activate adding newRowSettings
posted

Hello,

I want to activate/deactivate the possibility to add new row in a ColumnLayout of a XamGrid.

I would like to use the view model (DataContext) and Converter to do it.

What can i do in the following code:

   <ig:ColumnLayout Key="Livraisons"   CellStyle="{StaticResource GreenRow}"
                                         HeaderStyle="{StaticResource ColumnLayoutHeaderGreenStyle}">


                            <ig:ColumnLayout.AddNewRowSettings>
                                <ig:AddNewRowSettingsOverride AllowAddNewRow="Bottom" />
<!--What can i do to use converter to replace "Bottom" value per Converter/none value-->

                            </ig:ColumnLayout.AddNewRowSettings>


                            <ig:ColumnLayout.FillerColumnSettings>
                                <ig:FillerColumnSettingsOverride HeaderStyle="{StaticResource ColumnLayoutHeaderGreenStyle}" ></ig:FillerColumnSettingsOverride>
                            </ig:ColumnLayout.FillerColumnSettings>
                            
                            <ig:ColumnLayout.Columns>
                                <ig:TextColumn Key="DateLivraison" ></ig:TextColumn>
                                <ig:TextColumn Key="QteLivre"></ig:TextColumn>
                                <ig:TextColumn Key="QteConforme"></ig:TextColumn>
                            </ig:ColumnLayout.Columns>
                        </ig:ColumnLayout>

Second question :

Is it possible to add a button in header to expand all row of columnLayout ?

Thanks