ItemCommand not fired with LoadTemplate

Discussion in 'ASP .Net Datagrid Control' started by Vishal, Feb 22, 2005.

  1. Vishal

    Vishal Guest

    Hello,

    I have extended a webserver control from the datagrid
    control. This datagrid adds an ItemTemplate dynamically
    via the LoadTemplate function. That works so far. The
    LoadTemplate uses a user control, which only has a button
    in it. It looks like this:

    <asp:ImageButton id="btnExpand" runat="server"
    ImageUrl="~/Images/Plus.gif"></asp:ImageButton>

    Now, in my datagrid, when the user presses this button,
    then I would like to do something. Therefore I implemtned
    the ItemCommand function, but this is never called. Can
    anybody suggest what I am doing wrong?

    Thanks
     
    Vishal, Feb 22, 2005
    #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. Natty Gur
    Replies:
    0
    Views:
    590
    Natty Gur
    Jun 30, 2003
  2. Barry

    LoadTemplate logic in DataList

    Barry, Jul 28, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    603
    Barry
    Jul 28, 2003
  3. Replies:
    0
    Views:
    796
  4. alto

    DataGrid refreshes twice when ItemCommand fired

    alto, May 17, 2005, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    146
  5. Manick

    datagrid's itemcommand event gets fired

    Manick, Oct 24, 2005, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    186
Loading...

Share This Page