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>
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,
I am using 2010 Vol.1 (10.1.20101.1005)
The underlying object was a List, but I have changed it to an ObservableCollection now. Still the same...
The strange thing is it works fine if there is already one or more rows in the grid...It even pushes back all the changes to my List (now ObservableCollection).