0 Replies Latest reply on Apr 12, 2012 3:43 PM by pnob32

    changing field values to fit different object types

    pnob32

      Hello,

      I have a general question for a specific problem I have been having...

       

      I've created a DataGrid that will contain a list of mixed object types (2 possible types). There are various columns, such as one to display and edit the quantity of each row in the DataGrid.

      However, of the 2 row types to be entered into the grid, one should have an editable quantity and one's quantity should not be editable. To sum things up, I want to be able to control the "editable" field in DataGridColumn to discriminate on differing types. I was thinking that creating a custom data descriptor could be the answer, but I'm not sure if this is barking up the wrong tree...

       

      Any answers or tips would be greatly appreciated, sorry for the wordy question...