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).
I have the same problem xamGrid 10.3 when use datasource from WCF RIA Service. Everything is fine only case of adding new record when grid/datasource is empty.
Please help me.
Thanks
Han
Are you adding the newly added row to the context too.
Add the same to the observable collection that should work
In this case the grid can't load any column structure despite I set AutoGenerateColumns="True" already and in design mode we can see the column structure loaded.
To be clear, you have the xamGrid bound to an empty DDS? And columns aren't being AutoGenerated for you, and thus you can't add a new row?
If thats the case, this issue should be fixed in the latest SR.
-SteveZ
I tested the new version 11.01. This issue is really resolved.