各位大哥,我想请问下列语句应该怎样修改:
this.dataGridView1.RowHeaderMouseClick+=new System.Windows.Forms.DataGridViewRowEventHandler(this.dataGridView1_RowHeaderMouseClick)
报错为:
无法将类型“System.Windows.Forms.DataGridViewRowEventHandler”隐式转换为“System.Windows.Forms.DataGridCellMouseEventHandler”;
this.dataGridView1.RowHeaderMouseClick+=new System.Windows.Forms.DataGridViewRowEventHandler(this.dataGridView1_RowHeaderMouseClick)
报错为:
无法将类型“System.Windows.Forms.DataGridViewRowEventHandler”隐式转换为“System.Windows.Forms.DataGridCellMouseEventHandler”;
是这样写的吗?
private void dataGridView1_RowHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e)