c# eventhandling error
Posted
by
bragin.www
on Stack Overflow
See other posts from Stack Overflow
or by bragin.www
Published on 2012-04-05T17:23:09Z
Indexed on
2012/04/05
17:28 UTC
Read the original article
Hit count: 265
i have method
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;
}
and datagridview "dgvTable" error at this line
dgvTable.CellClick += new EventHadler(getValues);
error text is: No overload for 'getValues' matches delegate 'System.EventHandler'
please help!
© Stack Overflow or respective owner