im using DXGrid with instant feedback. The code is like this(dirty one for now, needs some refactoring):
public partial class BrigadeScheduleListView : UserControl
Entities mainModel = EntitiesFactory.CreateEntity();
GridList.View.WaitIndicatorType = WaitIndicatorType.Panel;
this.DataContextChanged += (s, e) =>
((BrigadeScheduleListViewModel)this.DataContext).AllItemsList = new LinqInstantFeedbackSource()
KeyExpression = "BRIGADE_SCHEDULE_ID"
((BrigadeScheduleListViewModel)this.DataContext).AllItemsList.GetQueryable += OnGetQueryable;
GridList.ItemsSource = ((BrigadeScheduleListViewModel)this.DataContext).AllItemsList;
private void OnGetQueryable(object sender, GetQueryableEventArgs e)
e.QueryableSource = mainModel.BRIGADE_SCHEDULES;
e.Tag = mainModel;
My task is to save changed row to the database when its checked in the grid. I have a command on check so that i can execute it in the view model class. To get selected row and assign it to my objects that i use in view model class i used FocusedRowHandleChanged which now is not firing.. Changed it to FocusedRowChanged and NewRow is now of object type that cant be converted to entity type BRIGADE_SCHEDULES.. So to save the changes i'll have to query database by ID from that object and change the query result with parameters from object?!..
What i try to say is: doesnt grid in instant feedback mode have change tracking of its rows? Can i use inplace editors in it to make the changes(didnt find any examples on this topic..Just how to fill grid with server mode/instant feedback mode ON and nothing about data editing)?
It is difficult to clearly diagnose this problem without being able to reproduce it locally.
Instead, use the TableView.RowUpdated event to track updates.
If it does not help, please provide us with a sample that illustrates your issue.
We will examine it and do our best to help you.
Is your intention to post an answer to your own question?
- If so, then proceed.
- If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
- If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.