conditional display border

2 posts, 0 answers
  1. Andre
    Andre avatar
    41 posts
    Member since:
    Feb 2018

    Posted 13 Jun 2018 Link to this post

    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é

  2. Dimitar
    Admin
    Dimitar avatar
    2960 posts

    Posted 14 Jun 2018 Link to this post

    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.
Back to Top