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. Advertisements

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. Barry

    LoadTemplate logic in DataList

    Barry, Jul 28, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    684
    Barry
    Jul 28, 2003
  2. Barry

    LoadTemplate logic in DataList

    Barry, Jul 28, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    487
    Barry
    Jul 28, 2003
  3. =?Utf-8?B?QW50b25pbyBDYXJwZW50aWVyaQ==?=

    Problem with OnItemButton event and Loadtemplate

    =?Utf-8?B?QW50b25pbyBDYXJwZW50aWVyaQ==?=, Sep 23, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    484
    =?Utf-8?B?QW50b25pbyBDYXJwZW50aWVyaQ==?=
    Sep 23, 2005
  4. =?Utf-8?B?QW50b25pbyBDYXJwZW50aWVyaQ==?=

    Problem with OnItemCommand event and Loadtemplate

    =?Utf-8?B?QW50b25pbyBDYXJwZW50aWVyaQ==?=, Sep 26, 2005, in forum: ASP .Net
    Replies:
    5
    Views:
    1,078
    leakingimplants
    Apr 16, 2008
  5. rioka
    Replies:
    0
    Views:
    587
    rioka
    Jun 12, 2006
  6. Replies:
    0
    Views:
    973
  7. alto

    DataGrid refreshes twice when ItemCommand fired

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

    datagrid's itemcommand event gets fired

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