Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > Datagrid events refuse to fire (pt 2)

Reply
Thread Tools

Datagrid events refuse to fire (pt 2)

 
 
Simon Storr
Guest
Posts: n/a
 
      07-16-2003
Further to my earlier post the following events DO fire -

ItemDataBound
ItemCreated
DataBinding
Load
PreRender
UnLoad

and the following DON'T -

EditCommand
Init
ItemCommand
SelectedIndexChanged
Disposed

Has anyone got any thoughts? I don't understand why it works in a normal
aspx page, but not a usercontrol.

Simon


 
Reply With Quote
 
 
 
 
Jeff Tolman
Guest
Posts: n/a
 
      07-16-2003
I've had similar problems with events not firing, usually for Button objects
within a Datagrid. Once I changed them to LinkButtons the events would
fire. However, I'm not sure why this is (perhaps a bug?). Do you have any
columns in your datagrid setup as Button objects?

Jeff Tolman
E&M Electric
http://www.velocityreviews.com/forums/(E-Mail Removed)

"Simon Storr" <(E-Mail Removed)> wrote in message
news:OK$(E-Mail Removed)...
> Further to my earlier post the following events DO fire -
>
> ItemDataBound
> ItemCreated
> DataBinding
> Load
> PreRender
> UnLoad
>
> and the following DON'T -
>
> EditCommand
> Init
> ItemCommand
> SelectedIndexChanged
> Disposed
>
> Has anyone got any thoughts? I don't understand why it works in a normal
> aspx page, but not a usercontrol.
>
> Simon
>
>



 
Reply With Quote
 
 
 
 
Simon Storr
Guest
Posts: n/a
 
      07-16-2003
hi Jeff,
I've now fixed the problem with the EditCommand - I explicitly set the
grid's DataSource and DataBind() the grid in the UserControl's Init
function. I am using an image for the edit button btw, by setting the 'Edit
Text' to <img alt='Edit' src=edit.gif border=0 />.

I still can't get the sorting event to fire though ( - it does seem like a
bug with usercontrols maybe, as my test app on a simple aspx page works
fine? I tried just having LinkButtons but the sort events still won't go (

Thanks,

Simon

"Jeff Tolman" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I've had similar problems with events not firing, usually for Button

objects
> within a Datagrid. Once I changed them to LinkButtons the events would
> fire. However, I'm not sure why this is (perhaps a bug?). Do you have

any
> columns in your datagrid setup as Button objects?
>
> Jeff Tolman
> E&M Electric
> (E-Mail Removed)
>
> "Simon Storr" <(E-Mail Removed)> wrote in message
> news:OK$(E-Mail Removed)...
> > Further to my earlier post the following events DO fire -
> >
> > ItemDataBound
> > ItemCreated
> > DataBinding
> > Load
> > PreRender
> > UnLoad
> >
> > and the following DON'T -
> >
> > EditCommand
> > Init
> > ItemCommand
> > SelectedIndexChanged
> > Disposed
> >
> > Has anyone got any thoughts? I don't understand why it works in a normal
> > aspx page, but not a usercontrol.
> >
> > Simon
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Events refuse to fire when using master pages saturday@gmail.com ASP .Net 6 07-06-2007 04:29 PM
Events Events Events Please Help Chris ASP .Net Web Controls 0 08-30-2005 08:21 PM
Dynamic Datagrid does not fire events. Mark ASP .Net 6 08-03-2003 06:35 PM
Datagrid events refuse to fire Simon Storr ASP .Net Datagrid Control 0 07-15-2003 11:49 AM
how to fire events of dropdownlist in datagrid Balaji ASP .Net 1 06-26-2003 12:57 PM



Advertisments