0
I am experiencing the following CS0123 error No Overload for 'lsvRecebeGrupoLayout_ItemCheck' Matches delegate 'Itemcheckeventhandler' in the code below, any suggestions what might be causing this error?
private void lsvRecebeGrupoLayout_ItemCheck(object sender, ItemCheckEventArgs e, CheckBox cb)
{
GrupoLayout gp = new GrupoLayout();
RepositorioGrupoLayout r = new RepositorioGrupoLayout();
Layout lay = new Layout();
cb.Checked = Convert.ToBoolean(gp.Id);
lay.Id = Convert.ToInt32(cb.Checked);
r.Alterar(lay.GrupoLayout);
}
killed the mistake, thank you very much Artur. #PAZ
– user92218
@Anderson, if the answer has met well, mark it as accepted ;)
– rLinhares
I was waiting for time to run out :)
– user92218
I’m trying to get an ID from a checkbox in the list view, but I’m not getting it, taking advantage of the cue. Any tips on how to do this? the Code looks like this: private void lsvRecebeGrupoLayout_ItemCheck(Object Sender, Itemcheckeventargs and) { var cb = (Checkbox)Sender; Grupolayout gp = new Grupolayout(); Repositoriogrupolayout r = new Repositoriogrupolayout(); Layout lay = new Layout(); if (cb.Checked) { cb.Checked = Convert.Toboolean(gp.Id); lay.Id = Convert.Toint32(cb.Checked); . Change(lay.Grupolayout); } }
– user92218