Datagrid events in UserControl

Discussion in 'ASP .Net' started by Marinos Christoforou, Aug 21, 2003.

  1. I have a user control that contains a datagrid. The grid is populated with
    data from an SQL database and also contains a button column with a push
    button that when invoked redirects to another page and passes data
    pertaining to that row to the new page. The problem is that when I invoke
    the push button on the grid, the datagrid's item command event is not fired,
    however the page load event for the user control does fire as a result of
    the post back How can I invoke the Datagrid's events?

    Please note that I have tried using an event handler in the user control's
    code-behind file and also tried declaring a handler in a script block, in
    both cases without the desired effect.
    Marinos Christoforou, Aug 21, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. huobazi
    Replies:
    1
    Views:
    667
    David Waz...
    Jul 3, 2003
  2. Rajesh Tiwari

    Can we use a usercontrol inside a usercontrol

    Rajesh Tiwari, Aug 12, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    398
    Rajesh Tiwari
    Aug 12, 2003
  3. nail
    Replies:
    0
    Views:
    1,527
  4. Kalpesh

    Button Events in UserControl embedded in a Datagrid

    Kalpesh, Jul 18, 2003, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    218
    Kalpesh
    Jul 23, 2003
  5. Chris

    Events Events Events Please Help

    Chris, Aug 30, 2005, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    335
    Chris
    Aug 30, 2005
Loading...

Share This Page