Hi
I am trying to add a new record to a grid using the inbuilt ShowInsertRow. When I add the record I get binding errors and an exception A first chance exception of type 'System.NullReferenceException' occurred in Telerik.Windows.Data.dll
If I continue through the errors it adds the record to the grid correctly.
The grid is bound to a ObservableCollection in the view model
I get two exceptions one for each column. The Call Stack Location is Telerik.Windows.Data.ObjectDataBinder.GetValue(Object bindingSource, stringPropertyPath)
The binding source is null, is this the problem? If so how do I deal with this?
Thanks for you help
Regards
Murray
I am trying to add a new record to a grid using the inbuilt ShowInsertRow. When I add the record I get binding errors and an exception A first chance exception of type 'System.NullReferenceException' occurred in Telerik.Windows.Data.dll
If I continue through the errors it adds the record to the grid correctly.
The grid is bound to a ObservableCollection in the view model
<
telerik:RadGridView
Grid.Row
=
"2"
x:Name
=
"SpatialDataLocations"
ItemsSource
=
"{Binding SpatialDataLocations}"
ShowGroupPanel
=
"False"
ShowInsertRow
=
"True"
IsSynchronizedWithCurrentItem
=
"True"
VerticalAlignment
=
"Stretch"
HorizontalAlignment
=
"Stretch"
AutoGenerateColumns
=
"False"
CanUserInsertRows
=
"True"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
Header
=
"Name"
DataMemberBinding
=
"{Binding Name, Mode=TwoWay}"
/>
<
telerik:GridViewDataColumn
Header
=
"Path"
DataMemberBinding
=
"{Binding Path, Mode=TwoWay}"
/>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
I get two exceptions one for each column. The Call Stack Location is Telerik.Windows.Data.ObjectDataBinder.GetValue(Object bindingSource, stringPropertyPath)
The binding source is null, is this the problem? If so how do I deal with this?
Thanks for you help
Regards
Murray