I have a very simple RadGridView with its ItemsSource set to a datatable which I found here:
http://blogs.telerik.com/blogs/posts/10-01-22/how_to_serialize_your_datatable_to_silverlight_using_wcf_service.aspx
The grid loads fine but whenever I edit a cell and hit return, I receive an ArgumentOutOfRangeException. Strangely, If I click on a column to sort it first and then edit a cell, everything works as expected.
Sample code below. How can I prevent this error?
Thanks,
-Josh
http://blogs.telerik.com/blogs/posts/10-01-22/how_to_serialize_your_datatable_to_silverlight_using_wcf_service.aspx
The grid loads fine but whenever I edit a cell and hit return, I receive an ArgumentOutOfRangeException. Strangely, If I click on a column to sort it first and then edit a cell, everything works as expected.
Sample code below. How can I prevent this error?
<
Grid
x:Name
=
"LayoutRoot"
Background
=
"White"
>
<
telerik:RadGridView
x:Name
=
"gv1"
ValidatesOnDataErrors
=
"None"
/>
</
Grid
>
Private
Sub
MainPage_Loaded(sender
As
Object
, e
As
System.Windows.RoutedEventArgs)
Handles
Me
.Loaded
Dim
Items
As
New
List(Of Dictionary(Of
String
,
Object
))
Dim
Row1
As
New
Dictionary(Of
String
,
Object
)
Row1.Add(
"Column1"
,
"item1"
)
Row1.Add(
"Column2"
,
"item2"
)
Row1.Add(
"Column3"
,
"item3"
)
Items.Add(Row1)
Dim
Row2
As
New
Dictionary(Of
String
,
Object
)
Row2.Add(
"Column1"
,
"item4"
)
Row2.Add(
"Column2"
,
"item5"
)
Row2.Add(
"Column3"
,
"item6"
)
Items.Add(Row2)
gv1.ItemsSource =
New
Telerik.Data.DataTable(Items)
End
Sub
Thanks,
-Josh