This is a migrated thread and some comments may be shown as answers.

conditional display border

1 Answer 45 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Andre
Top achievements
Rank 1
Andre asked on 13 Jun 2018, 12:48 PM

hi

how can i add a conditional cellBorderto a cell. just like a conditional background color but only a border ?

 

            ConditionalFormattingObject c1 = new ConditionalFormattingObject("c1", ConditionTypes.Less, DateTime.Today.ToString(), "", false) {
                CellBackColor = Color.FromArgb(255, 209, 140)
            };
            dgv.Columns[ColumnTitle.GridTasklistMail.deadline].ConditionalFormattingObjectList.Add(c1);

 

thanks 

andré

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 14 Jun 2018, 08:36 AM
Hello Andre,

The conditional formatting cannot be used for borders. For this, you can use CellFormatting or the Style property. Detailed information is available here:
I hope this will be useful. Let me know if you have additional questions.
 
Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
GridView
Asked by
Andre
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or