Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Event ItemCommand not firing in DataGrid (1.1)

Reply
Thread Tools

Event ItemCommand not firing in DataGrid (1.1)

 
 
Andy
Guest
Posts: n/a
 
      01-10-2007
Probably this quesion was already raised, but I couldn't find any answer to
it, even on Google.

My question is:

I have a plain datagrid on a page, and I'm adding a button column to it.
When this button column is in a form of a Link button, ItemCommand event is
processed, and code stops nicely on a breakpoint set in the
DataGrid1_ItemCommand procedure. When I make one change - type of the button
is changed to Push button, DataGrid1_ItemCommand doesn't work. Why is this
happening? Anybody has answer to it?

I know there's another way with a Template column containing one button --
but same ItemCommand doesn't trap the event.

Can anyone please help and explain how I can trap button clicks of the
buttons located in the Button and Template columns of the DataGrid?

P.S. .NET Framework 1.1

Thanks very much,

Andy.


 
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
ItemCommand event not firing from a dynamic user control,feeling puzzled EvelynAnd Ethan ASP .Net 4 01-09-2006 03:12 AM
DataGrid ItemCommand event not firing if not first page =?Utf-8?B?ZGFuYw==?= ASP .Net 3 10-26-2005 05:24 PM
Datagrid ItemCommand Event Not Firing =?Utf-8?B?RGVlcGVzaA==?= ASP .Net 2 10-06-2005 12:46 AM
ImageButton not firing ItemCommand event for the datagrid John ASP .Net Datagrid Control 0 08-04-2005 02:13 PM
Dynamic Datagrid Creation - ItemCommand event not firing PD ASP .Net Datagrid Control 0 10-23-2003 03:48 PM



Advertisments