Hi,
As per my requirement , I need to apply specific style for Cell.
Once you applied style, Cell will have Value, Border Color and image depends on the collection set it in binding.
To achieve above requirement..which Targettype need to be used to apply Style?
Thanks,
Chandra
Hi Yanko,
Thanks for your help..
As per your solution, we are writing converter, where we can check exact cell values with some conditions.
But in my case, everything has to do dynamically...
Anyway..thanks for your help..
I have posted one more post..
http://es.infragistics.com/community/forums/t/78661.aspx
If the above mentioned problem rectifies..my problem will be resolved..
Could you please look into above issue?
Hello Chandra,
I am just checking if you require any further assistance on the matter.
I have been looking into your sample application and after thorough research I believe that setting the border brush through accessing the properties of your ColumnInfo and CellInfo is not an appropriate approach because they cannot be accessed by the underlying data of the records in the XamDataGrid. The best approach that I can suggest is by using the border converter :
<local:BorderConverter x:Key="testconv" />
…
BorderBrush="{Binding Converter={StaticResource testconv}}"
public class BorderConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
if ((value as DataRecord).Cells[0].Value.ToString() == "CV002" && (value as DataRecord).Cells[0].Record.Index ==1)
return Brushes.Orange;
}
else if ((value as DataRecord).Cells[0].Value.ToString() == "CV002" && (value as DataRecord).Cells[0].Record.Index == 2)
return Brushes.Pink;
else
return value;
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
throw new NotImplementedException();
This way you can check the value in the desired cell and its index in the XamDataGrid.
I am attaching my solution, which i am currently working on it.
Thanks in advance..
I am waiting for your response.As i need to implement this as high priority task to me..
Regards,
Hi Chandra,
Would you please attach a sample application following your scenario with the ‘ColumnInfo’ class in order to provide you with more accurate assistance ?
Looking forward to hearing from you.