Hi all,
I've got a RadGridView which has its ItemSource bound to View, a property on my viewmodel class of type IEnumerable. It's backed by a local variable
It's all working as I want except when I delete a row from the context. I'm currently doing a remove on the item in the context
_allContext.EntityContainer.GetEntitySet<StandbyHoursDto>().Remove(SelectedAllLine);
which does work. I have a save button which saves the changes to the context.
The problem I'm getting is that until I save the changes the RadGridView does not remove the deleted row from the visible rows.
I've tried
Hope someone can tell me how to delete a row from a RadGridView that is bound to a QueryableDomainServiceCollectionView thanks! Stephen
I've got a RadGridView which has its ItemSource bound to View, a property on my viewmodel class of type IEnumerable. It's backed by a local variable
private readonly QueryableDomainServiceCollectionView<StandbyHoursDto> _view;
EntityQuery<StandbyHoursDto> getAllStandbyHoursQuery = _allContext.GetAllStandbyCodesQuery(_jobId); _view = new QueryableDomainServiceCollectionView<StandbyHoursDto>(_allContext, getAllStandbyHoursQuery);
It's all working as I want except when I delete a row from the context. I'm currently doing a remove on the item in the context
_allContext.EntityContainer.GetEntitySet<StandbyHoursDto>().Remove(SelectedAllLine);
which does work. I have a save button which saves the changes to the context.
The problem I'm getting is that until I save the changes the RadGridView does not remove the deleted row from the visible rows.
I've tried
_view.Refresh();
_view.Load();
but none seem to help. It's set to AutoLoad which works (ie changing pagesize will reload).Hope someone can tell me how to delete a row from a RadGridView that is bound to a QueryableDomainServiceCollectionView thanks! Stephen