Xaml for dynamic grid
<telerik:RadGridView Name="RadgridHoover"
CanUserDeleteRows="True"
CanUserInsertRows="True"
ShowColumnHeaders="True"
ShowGroupPanel="{Binding IsShowGroupPanel, Mode=TwoWay}"
AlternateRowBackground="Transparent"
AlternationCount="2"
AutoGenerateColumns="False"
SelectionMode="Multiple"
IsReadOnly="True"
IsFilteringAllowed="True"
EditTriggers="CurrentCellClick"
SelectionUnit="FullRow"
EnableColumnVirtualization="False"
EnableRowVirtualization="True"
RowIndicatorVisibility="Collapsed"
GridLinesVisibility="Horizontal"
behaviors:GridColumnsBindingBehavior.Columns="{Binding Columns, Mode=TwoWay}"
ItemsSource="{Binding MembersTable, Mode=TwoWay}"
SelectedItem="{Binding SelectedItem}"
DataLoadMode="Asynchronous"
>
</telerik:RadGridView>
When grouping data on grid, expand a header group and select a record to edit this selected record. After that, I updated data row on grid for selected record in viewmodel:
public void UpdateRow(int index, object data)
{
if (data != null)
{
var row = MembersTable.Rows[index];
for (int i = 0; i < data.GetType().GetProperties().Count(); i++)
{
PropertyInfo pinfo = data.GetType().GetProperties()[i];
if (!ListPropertiesName.Contains(pinfo.Name))
{
row[pinfo.Name] = pinfo.GetValue(data, null);
}
}
MembersTable.Rows[index] = row;
}
}
This selected row is not updated, just when i scroll the grid, this selected row is updated. If not grouping row, everything is okay.
Please help me this case.
Thanks a lot.