Hello,
I need to update te value of a cell in my radgrid view. When I try to change it the grid does not uptate its value until I reagroup or manipulate the grid in any other way
This is my code:
selectedItem = TryCast(
Me
.rgv_attributes.Items.Item(0), c_accionAtributo)
Me
.rgv_attributes.Items.EditItem(selectedItem)
selectedItem.Value =
"algo"
Me
.rgv_attributes.Items.CommitEdit()
The itemsource is an ObservableCollection(Of c_accionAtributo)
Me.rgv_attributes.ItemsSource = atributes
Any help?
Thanks!
7 Answers, 1 is accepted
I have tested the code snippet you shared and both the values in the row and the group row were updated. Would you please share how have you configured your RadGridView?
Didie
Telerik
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>

<
telerik:RadGridView
Margin
=
"12"
Name
=
"rgv_attributes"
ColumnWidth
=
"*"
AutoGenerateColumns
=
"False"
IsSynchronizedWithCurrentItem
=
"True"
CellEditEnded
=
"rgv_attributes_CellEditEnded"
>
</
telerik:RadGridView
>
Dim
typeColumn
As
New
GridViewDataColumn()
typeColumn.DataMemberBinding =
New
System.Windows.Data.Binding(
"Type"
)
rgv_attributes.Columns.Add(typeColumn)
Dim
valueColumn
As
New
GridViewDataColumn()
valueColumn.DataMemberBinding =
New
System.Windows.Data.Binding(
"Value"
)
rgv_attributes.Columns.Add(valueColumn)
Dim
comboColumn
As
New
GridViewComboBoxColumn()
comboColumn.DataMemberBinding =
New
System.Windows.Data.Binding(
"Action"
)
comboColumn.ItemsSource = AvailableGenders
comboColumn.Width = 100
rgv_attributes.Columns.Add(comboColumn)
Me
.rgv_attributes.ItemsSource = atributes
Me
.rgv_attributes.GroupDescriptors.Add(
New
ColumnGroupDescriptor()
With
{ _
.Column =
Me
.rgv_attributes.Columns(
"Type"
), _
.SortDirection = System.ComponentModel.ListSortDirection.Descending _
})
Thanks

Any idea of why is this happening?
Thank you for sharing that additional information.
Unfortunately I am still not able to reproduce an issue. This would happen if you have set Asynchronous DataLoadMode, but this is not your case.
Would it be possible for you to isolate the issue in a demo project and send it to me? You can open a support ticket and attach the solution there.
Didie
Telerik
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Thank you.
I am posting my answer here as well:
The reason why the data is not updated is that your class (c_accionAtributo) does not implement the INotifyPropertyChanged interface.
You can check this msdn article for a reference on how to implement it.
Didie
Telerik
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
