Skip to main content

Painting Column Captions

Comments

1 comment

  • Dapfor Team

    Hello,

    As we understand in the PaintColumnCaptionEventArgs event you do not have information on the row to which the header belongs. We will think about improving the API. Right now to get this row, you can use the following code:

    grid.PaintColumnCaption += delegate(object sender, PaintColumnCaptionEventArgs e)
    {
    if (e.Column.Id == "Label")
    {
    Row row = e.Grid.HitTests.RowTest(new Point(0, e.VirtualBounds.Bottom));
    Row parentRow = row != null ? row.Parent : null;

    //Do something...
    //e.Text = lastText;
    //e.Font = bnFont;
    }
    };

     

    Best regards,
    The Dapfor Team

    0

Please sign in to leave a comment.

Powered by Zendesk