Home All Groups Group Topic Archive Search About

DataGrid event handlers are being lost during re-compile

Author
3 Feb 2006 1:35 PM
shamus.schubert
This seems to happen too often (more than once).

By 'rebuilding' the web application (using Visual Studio.NET 2003,
v1.1) and making no changes whatsoever to a particular DataGrid (that I
am aware of), the ItemDataBound, DeleteCommand, etc. event handlers
just 'unhook' themselves and no longer fire.

I can simply go into VS.NET and find the grid and re-select the proper
method to call when the event is fired, but the often causes regression
issues when changing totally unrelated things and rebuilding and
re-deploying.

Is this something about VS.NET or possibly something I am doing (like
something custom in the DataGrid)?

Thx.

Author
4 Feb 2006 6:34 AM
Ken Cox - Microsoft MVP
Is it that the Handles clause is disappearing?  That was an intermittent bug
way back in the first version of VS.NET. I think it was fixed in a service
pack.

<shamus.schub***@wachovia.com> wrote in message
Show quoteHide quote
news:1138973702.839428.145030@g44g2000cwa.googlegroups.com...
> This seems to happen too often (more than once).
>
> By 'rebuilding' the web application (using Visual Studio.NET 2003,
> v1.1) and making no changes whatsoever to a particular DataGrid (that I
> am aware of), the ItemDataBound, DeleteCommand, etc. event handlers
> just 'unhook' themselves and no longer fire.
>
> I can simply go into VS.NET and find the grid and re-select the proper
> method to call when the event is fired, but the often causes regression
> issues when changing totally unrelated things and rebuilding and
> re-deploying.
>
> Is this something about VS.NET or possibly something I am doing (like
> something custom in the DataGrid)?
>
> Thx.
>