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
250
Add new row on empty grid
posted

Hi,

This is propably something small, but I can't add a new row to an empty grid..

If there is already one row in the grid, adding a new row works fine...

Thanks,
Bart 

 

This is my grid:
<igGrid:XamWebGrid Name="grdEmail" ItemsSource="{Binding CurrentCompany.Email}" 

                                       IsEnabled="{Binding IsControlEnabled}"

                                       Height="180">

                        <igGrid:XamWebGrid.EditingSettings>

                            <igGrid:EditingSettings AllowEditing="Row" IsMouseActionEditingEnabled="SingleClick" />

                        </igGrid:XamWebGrid.EditingSettings>

                        <igGrid:XamWebGrid.AddNewRowSettings>

                            <igGrid:AddNewRowSettings AllowAddNewRow="Top" IsMouseActionEditingEnabled="SingleClick"

                                                      IsF2EditingEnabled="True"

                                                      IsEnterKeyEditingEnabled="True" IsOnCellActiveEditingEnabled="True"/>

                        </igGrid:XamWebGrid.AddNewRowSettings>

 

                        <igGrid:XamWebGrid.Columns>

                            <igGrid:TextColumn Key="Email"/>

                            <igGrid:CheckBoxColumn Key="BetalingsAdvies" />                                

                        </igGrid:XamWebGrid.Columns>

                    </igGrid:XamWebGrid>

Parents
  • 6475
    posted

    Hi Bart,

    I tried to reproduce your issue but without success. Could you provide some more information, e.g. which version / build you're using ?

     

    Also, are you using an ObservableCollection, or some other collection type that implements the INotifyCollectionChanged interface? If your itemsource doesn't implement this interface the grid will not be notified when a new row is added to the collection and thus - it will not display it automatically.

     

     

    Regards,

Reply Children