i has override the method of OnCellValidating(DataGridViewCellValidatingEventArgs e) in DataGridView
and i also want to override the method
protected override void OnRowValidating(DataGridViewCellCancelEventArgs e)
and in OnRowValidating method i want to invoke the method of OnCellValidating,do as this:
protected override void OnRowValidating(DataGridViewCellCancelEventArgs e){
...
DataGridViewCellValidatingEventArgs ex=new DataGridViewCellValidatingEventArgs (columnIndex,rowInde,formatedValue);
OnCellValidating(ex);
...
base.OnRowValidating(e);
}
but the code
DataGridViewCellValidatingEventArgs ex=new DataGridViewCellValidatingEventArgs (columnIndex,rowInde,formatedValue);
is can not run success.throw erros as this:
错误125类型“System.Windows.Forms.DataGridViewCellValidatingEventArgs”未定义构造函数 F:\container\NFramework\NFramework\NFramework\control\NFDataGridView.cs58947NFramework
i an using visual studio 2005 and .net2.0 to do that,
can anybody help me?