Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
280
XamGrid AllowConditionalFormatting exception
posted

I'm sure I'm not in the right forum, but this appears to be the only one I am able to post in.

I am using XamGrid, and when I add a ConditionalFormattingSetting of AllowConditionalFormatting=True, I get the below exception in the debug window. (The conditional formatting does work, however.)

A first chance exception of type 'System.InvalidOperationException' occurred in PresentationFramework.dll

If I set AllowConditionalFormatting="False", I do not get the exception. Thoughts? Code is below (Resources not shown).

<ig:XamGrid x:Name="JobsGrid" AutoGenerateColumns="False">
    <ig:XamGrid.ConditionalFormattingSettings>
        <ig:ConditionalFormattingSettings AllowConditionalFormatting="True" />
    </ig:XamGrid.ConditionalFormattingSettings>
    <ig:XamGrid.Columns>
         <ig:TextColumn Key="JobType" Width="100" />
         <ig:TextColumn Key="JobName" HeaderText="Job" Width="100" />
         <ig:TextColumn Key="Status" Width="80">
            <ig:TextColumn.ConditionalFormatCollection>
                <ig:EqualToConditionalFormatRule Value="InProgress" StyleToApply="{StaticResource StatusGreen}" />
                <ig:EqualToConditionalFormatRule Value="Unstarted" StyleToApply="{StaticResource StatusRed}"  />
             </ig:TextColumn.ConditionalFormatCollection>
        </ig:TextColumn>
     </ig:XamGrid.Columns>
</ig:XamGrid>