0

i have a silverlight datagrid where first column is a checkbox column.

which looks like this..

 <sdk:DataGridCheckBoxColumn Header ="Select" Binding="{Binding Path=IsChecked ,Mode=TwoWay}" ></sdk:DataGridCheckBoxColumn>

this would check or uncheck based on my binding property IsChecked.

i also have a Binding property IsCheckBoxEnabled.

Is it possible to enable disable the checkbox using this property.

something like this.

<sdk:DataGridCheckBoxColumn Header ="Select" IsReadOnly={Binding IsCheckBoxEnabled} Binding="{Binding Path=IsChecked ,Mode=TwoWay}" ></sdk:DataGridCheckBoxColumn>

though the above line doesn't work. Am I missing something? i don't want to handle it in code behind.

sajad
  • 923
  • 2
  • 10
  • 25

1 Answers1

-1

I had the same problem:

Silverlight, datagrid, autogenerated columns on modified column change cell visibility of content

This is how I found and fixed it.

Community
  • 1
  • 1
BugFinder
  • 17,474
  • 4
  • 36
  • 51
  • Nope its the same thing..in the link that u suggest..its still bound on one proprty.. i have two properties..:( – sajad Jul 23 '12 at 11:57
  • I already have - the example is on the link. Change the converted to instead of saying if this then visible else its not.. to if that and this then checked else not.. – BugFinder Jul 25 '12 at 10:14