Parameters
- g
- System.Drawing.Graphics object where the content will be rendered.
- bounds
- System.Drawing.Rectangle that specifies the bounds where the content will be rendered.
void _flex_OwnerDrawCell(object sender, OwnerDrawCellEventArgs e) { // get cell content string text = _flex.GetDataDisplay(e.Row, e.Col); // check that the cell contains html if (!string.IsNullOrEmpty(text) && text.StartsWith("<html>")) { // set label back color and content _superLabel.BackColor = e.Style.BackColor; _superLabel.Text = text; // draw the Html into grid cell _superLabel.DrawToGraphics(e.Graphics, e.Bounds); // cell has been drawn e.Handled = true; } }