RE: DataGridCheckBoxColumn (fixed?!)

2011-12-06 Thread Greg Keogh
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

Re: DataGridCheckBoxColumn (fixed?!)

2011-12-06 Thread Jordan Knight
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

RE: DataGridCheckBoxColumn (fixed?!)

2011-12-05 Thread Greg Keogh
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

RE: DataGridCheckBoxColumn (fixed?!)

2011-12-05 Thread Greg Keogh
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

RE: DataGridCheckBoxColumn

2011-12-05 Thread Steven Nagy
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

RE: DataGridCheckBoxColumn

2011-12-05 Thread Steven Nagy
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