Menu

Renderer on first column

Zvonimir
2014-03-21
2022-03-09
  • Zvonimir

    Zvonimir - 2014-03-21

    I've written my own renderer, but it should be used on first column of my tree view. It works on every other column, but does nothing when assigned to first one.

    Is there a way to assign it to first one?
    Thanks

     
  • Phillip Piper

    Phillip Piper - 2014-03-22

    The first column of TreeListView's are special.

    They have to be instances of TreeRenderer. They do the drawing of the tree structure as well as the normal icon/text combination.

     
    • JOSH

      JOSH - 2022-03-09

      Greeting from 2022, can you provide an example for TreeRenderer?
      Im using HighlightTextRenderer on TreeListView but only first column "olvColumn1" is not working.

      var filter = TextMatchFilter.Contains(treeListView1, txtSearchInTable.Text);
      filter.Columns = new[] { this.olvColumn1, this.olvColumn2, this.olvColumn3, this.olvColumn4 };
      treeListView1.DefaultRenderer = new HighlightTextRenderer(filter);
      
       

Log in to post a comment.

MongoDB Logo MongoDB