It’s all working now. It turns out I didn’t need to walk up anywhere for the
DataContext, as the I managed to embed a C1 colour picker control into the
template cell and bind it directly to the Colour property. The screen shot I’ve
pasted below (if your email can see it) shows how I’ve bound a
Create a user control and place it in the cell.
Have a dependency property on it to publish the select color back to where you
need...
Cheers,
Jordan.
On 06/12/2011, at 7:07 PM, "Greg Keogh" wrote:
> Now that’s solved, I have an even more ambitious thing to try.
>
> I want to turn a Dat
Now that's solved, I have an even more ambitious thing to try.
I want to turn a DataGrid cell into a colour picker. I have a template
column containing a with a TextBlock inside. The grid background is
bound to the colour (via a converter) and I can see a cell value like
# with a red b
Good grief, the advice to use a template column instead of a check box
column seems to work. A single gesture is required to toggle the check and
update the bound property. Who would have guessed?!
Greg
___
ozsilver
2011 3:23 PM
To: ozSilverlight
Subject: RE: DataGridCheckBoxColumn
I love your posts Greg because there's no actual question there :)
To solve #1, Template column actually works fine and I promise it will only
take you about 1 minute more. You get to provide your own DataTemplate which
can co
I love your posts Greg because there's no actual question there :)
To solve #1, Template column actually works fine and I promise it will only
take you about 1 minute more. You get to provide your own DataTemplate which
can contain a checkbox with the same {Binding Property} for the IsChecked
p