必须要重写那些方法?

解决方案 »

  1.   

    我现在仅仅复写了Clone和Paint两个方法,也重写了FormattedValueType,但程序运行后报如下错误:
    DataGridView中发生以下异常:
    System.FormatException : 单元格的Formatted值的类型错误。
    要替换此默认对话框,请处理DataError事件。FormattedValueType方法代码如下:
    public override Type FormattedValueType
            {
                get
                {
                    return typeof(Boolean);
                }
            }
      

  2.   

    没人编写过自定义DataGridViewCell的代码吗?给个来参考一下吧
      

  3.   

    高手和MVP都到那去了,没人写过类似的代码吗?。完蛋了