Posted 9 November 2022, 10:37 pm EST
Hello,
I’m using an old componentone C1Datagrid for WPF Version 3.0.20093.100. During runtime the quantity of the displayed columns are dynamically. So I’m using a variable and if its true, I want to change the backgroundcolor of the specific column.
Its not working but the Codesnippet should explain, what i want to do:
…
For Each column In DG_Maschinenplanung.ActualColumns
Select Case CInt(txt_AnzahlWochen.Text) Case 1 If column.Caption.Contains(CStr(int_WeekOfYear)) Then column.SetValue(BackgroundProperty, New SolidColorBrush(Colors.Blue)) End If ...........................
Could you pleas help me to make this function working?
Thanks in advance and best regards
Christoph