Skip navigation
pnob32
Currently Being Moderated

changing field values to fit different object types

Apr 12, 2012 3:43 PM

Tags: #datagrid #containers #datagridcolumn

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...

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points