Click here to Skip to main content
15,796,198 members

Comments by Dotnetkanna (Top 2 by date)

Dotnetkanna 24-Apr-13 3:19am View    
Hi Matt i need a another help, right now its working fine as when i made some changes in the Costcenter cell on coming out of the cell bordercolor or background color will get change, like wise the color should get changed while its binding itself when the data is populated in the gris itshould be highlighted. How can i do that any idea? My working code is below.since im very new to this getting struck.

<Style x:Key="costCenterStyle" TargetType="{x:Type igDataPresenter:CellValuePresenter}" BasedOn="{StaticResource isEditableStyle}" >
<DataTrigger Binding="{Binding Path=DataItem.IsChanged[CostCenter]}" Value="Changed">
<Setter Property="Background" Value="LightSalmon"/>
<DataTrigger Binding="{Binding Path=DataItem.IsChanged[CostCenter]}" Value="ChangedButNotCommited">
<Setter Property="BorderThickness" Value="2"/>
<Setter Property="BorderBrush" Value="LightSalmon"/>

<igDataPresenter:Field Name="CostCenter" Label="Cost Center">
CellValuePresenterStyle="{StaticResource costCenterStyle}"/>

Kannabiran B
Dotnetkanna 2-Apr-13 1:16am View    
Great Matt!! After removing the default caption Work History its working fine. Thanks a Lot.