Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
140
Problem entering edit mode on editable fields, having previously selected non-editable field.
posted

I am using a xamDataGrid from WPF Line of business 2010 vol. 3 under Windows 7. My grid is bound to a DataView object exposed from a ViewModel class. In the FieldLayoutInitialized event handler, I set some of the fields to have Field.Settings.AllowEdit = true and other fields to be false.

When I run the application and click on an editable field I am able to access edit mode without problem (see below).

 

If I then click on one of the non-editable fields, this field is selected but not made editable, as I would expect. The problem arises when I then click back on to an editable field. The field is selected, but not put in to edit mode (see below). 




Incidentally, I do see the EditModeStarting event being fired even though the cell is not actually editable.
Other settings that may be relevant: 
FieldLayout.FieldSettings.CellClickAction = CellClickAction.EnterEditModeIfAllowed;
I would really like to resolve this issue as soon as possible and so any input would be appreciated. 
Regards
Ben Lait

 

 

Parents
No Data
Reply
  • 140
    Verified Answer
    posted

    Apologies all. I have located the issue here. I had an asynchronous process setting DataRecord.IsSelected property, which was overriding the editmode.

    Regards

    Ben

Children
No Data