DataGridTemplateColumn.CellTemplate question . RRS feed

  • Question

  • What's wrong with 'myconverter' if I want to set the cell background to a certain color within the datagrid? thank you, -hazz

    <data:DataGridTemplateColumn Header="Volume">
                Content="{Binding GasVolume}"
                x:Name="color keyed numeric value"
                NavigateUri=" aspx page containing another datagrid"
             </HyperlinkButton >
            <custom:myConverter Background="Binding GasVolume" />

    Friday, January 9, 2009 9:23 AM


  • I think there two problems. First is definition of custom namespace. It should be as below:

    <UserControl .......
    .... >
    Second is how u defined the resource. It should be defined as:
     <custom:IsGreaterThanConverter x:Key="myconverter" />
    Friday, January 9, 2009 1:45 PM

All replies