我有方法
private void getValues(object sender, EventArgs e)
{
int id = int.Parse(dgvTable.Rows[dgvTable.CurrentRow.Index].Cells[0].Value.ToString());
var values = from c in v.db.TotalDoc
where c.TotalID == id
select c.TotalAmount;
dgvValues.DataSource = values;
}
和这一行的datagridview“dgvTable”错误
dgvTable.CellClick += new EventHadler(getValues);
错误文本是:“getValues”没有重载与委托“System.EventHandler”匹配
请帮忙!