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
345
How do I bind a property in a Field/FieldSetting/Field Layout to a record
posted

I'm sure this is a stupid question I can't see how to do this.  For example if I wanted to set the AllowEdit FieldSetting to true or false depending on a record value. From a cell you would just use "Record.DataItem", but this is not available from a field.

Parents
  • 8576
    Verified Answer
    Offline posted
    Hi -
     
    One way to prevent editing of a cell based on the cell's value is to handle the xamDataGrid's EditModeStarting event.  The event arguments include a reference to the cell and you can use this to check the value and set the Cancel eventargs parameter to true to prevent editing.
     
    Joe Modica
     
Reply Children