Home Forums WinForms controls Xceed Grid for WinForms text in numeric field Reply To: text in numeric field

User (Old forums)
Post count: 23064

I was able to do that using the obsolete ICellViewer by implementing the method PaintCellValue, i.e.

public bool PaintCellValue(GridPaintEventArgs e, Cell cell)
e.Graphics.DrawString(“Less than”,cell.Font,Brushes.Black,e.ClientRectangle.X,e.ClientRectangle.Y );
return true;

But when I try to do the same thing by inherting from the TextViewer i.e.

protected override void SetControlValueCore(Cell cell)
Control.Text = “Or Greater”;

It doesnt work.

Any help will be appreciated

Imported from legacy forums. Posted by userX (had 286 views)