Re: Grid Control ItemData event not firing
From: HandA (nospam_at_nospam.com)
Date: 05/12/04
- Next message: Andy Wang: "change HeaderText of DataGrid in PreRender()."
- Previous message: Ken Cox [Microsoft MVP]: "Re: Grid Control ItemData event not firing"
- In reply to: Ken Cox [Microsoft MVP]: "Re: Grid Control ItemData event not firing"
- Next in thread: SStory: "Re: Grid Control ItemData event not firing"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 12 May 2004 15:47:17 -0500
Well, I checked for that and it seemed to be right.
I am not at the computer that has the code on it at present. I will respond
as soon as I back at that location with the code.
It did have a handles event that appeared right at first glance.
Will get back to you.
Thanks
Shane
"Ken Cox [Microsoft MVP]" <BANSPAMken_cox@sympatico.ca> wrote in message
news:OqwF76FOEHA.2952@TK2MSFTNGP12.phx.gbl...
> Could you post the code that isn't working? The event handler should look
> like this:
>
> Private Sub DataGrid1_ItemDataBound _
> (ByVal sender As Object, _
> ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) _
> Handles DataGrid1.ItemDataBound
> ' Your code goes here
> End Sub
>
> VS.NET used to play tricks by removing the Handles clause.
>
>
> "HandA" <nospam@nospam.com> wrote in message
> news:eg4c00FOEHA.128@TK2MSFTNGP12.phx.gbl...
> >I have a grid control on a page that I copied from another page and
> > modified.
> > For some reason it seem my ItemData event never fires.
> >
> > I even put a break point in it and it doesn't get there.
> > I tried response.write and response.end in that event and it doesn't
> > output
> > anything.
> >
> > Any ideas?
> >
> > Thanks
> >
> >
> >
>
- Next message: Andy Wang: "change HeaderText of DataGrid in PreRender()."
- Previous message: Ken Cox [Microsoft MVP]: "Re: Grid Control ItemData event not firing"
- In reply to: Ken Cox [Microsoft MVP]: "Re: Grid Control ItemData event not firing"
- Next in thread: SStory: "Re: Grid Control ItemData event not firing"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|