Home Forums WinForms controls Xceed Grid for WinForms Display graphic in a FixedHeaderRow

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #13641 |

    Is it possible to create a FixedHeaderRow that can display a graphic in one cell only? I have created a cellviewer class that displays a value as a graphic, and I would like to display the average of all these values as a graphic in a fixed row, to allow easy comparison of each row’s value with the overall average for the dataset.

    Does anyone know of a way to do this? Thanks.

    Imported from legacy forums. Posted by deb (had 1903 views)

    User (Old forums)
    Member
    Post count: 23064

    You could add a <b>ValueRow</b> to the <b>FixedHeaderRows</b> collection of your grid, and set the <b>CellViewer</b> property of the specific cell to an instance of your cellviewer. Like this:<code>ValueRow myRow = new ValueRow();
    myGrid.FixedHeaderRows.Add(myRow);
    myRow[“myColumn”].CellViewer = new MyCellViewer();</code>

    Imported from legacy forums. Posted by Tommy (had 2917 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.