Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > ItemCommand not fired with LoadTemplate

Thread Tools

ItemCommand not fired with LoadTemplate

Posts: n/a

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"

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?

Reply With Quote

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
Embedded <divs> with events: How to prevent the parent div's eventfrom being fired when the embedded div's event is fired? Num GG Javascript 2 11-17-2008 08:56 PM 1.1 -> LoadTemplate and ExtractTemplateRows not working together ?? ASP .Net 0 12-01-2006 10:37 PM
datagrid's itemcommand event gets fired Manick ASP .Net Web Controls 2 10-25-2005 09:38 PM
DataGrid refreshes twice when ItemCommand fired alto ASP .Net Datagrid Control 0 05-17-2005 03:06 PM
Re: why datagrid's itemcommand event fired when I press ENTER key in a TextBox Natty Gur ASP .Net 0 06-30-2003 05:39 AM