Hello,
I have a gridview below. The code "await Task.Run(() => { View.clear(); });" throw an exception:"The calling thread cannot access this object because a different thread owns it." But if I remove "<telerik:GridViewSelectColumn/>", it​ works, please tell me how to fix it? Thanks.
<
telerik:RadGridView
Name
=
"view"
ShowGroupPanel
=
"False"
Margin
=
"10"
IsReadOnly
=
"True"
ItemsSource
=
"{Binding View}"
AutoGenerateColumns
=
"False"
SelectionMode
=
"Extended"
>
<
telerik:RadGridView.RowStyle
>
<
Style
TargetType
=
"telerik:GridViewRow"
>
<
Setter
Property
=
"IsSelected"
Value
=
"{Binding IsSelected, Mode=OneWayToSource}"
/>
</
Style
>
</
telerik:RadGridView.RowStyle
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewSelectColumn
/>
<
telerik:GridViewDataColumn
Header
=
"Name"
DataMemberBinding
=
"{Binding Name}"
/>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>