代码如下:
  public class DataColorColumn : DataGridTextBoxColumn
  {
    protected override void Paint(System.Drawing.Graphics g, System.Drawing.Rectangle brouds, 
      System.Windows.Forms.CurrencyManager source, int rowNum, System.Drawing.Brush backBrush, 
      System.Drawing.Brush foreBrush, bool alignToRight)
    {
      try
      {
      }
      catch
      {
        /* empty catch */ 
      }
      finally
      {
        base.Paint(g, bounds, source, rowNum, backBrush, foreBrush, alignToRight);
      }
    }    protected override void PaintText(
      Graphics g,
      Rectangle bounds,
      string text,
      bool alignToRight
      )
    {
    }
  }编译始终提示PaintText出错,DX看看是什么原因。