Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > DataGrid Button Colums Javascript !!

Reply
Thread Tools

DataGrid Button Colums Javascript !!

 
 
Amit Garg
Guest
Posts: n/a
 
      01-22-2004
Hi !!
I am using datagrid control with a button column i want to associate
some javascript code onto that button. it is possible and if yes how ??

Here is the code:

<aspataGrid id="dgProducts" runat="server"
OnItemCommand="dispDetails">
<Columns>
<asp:ButtonColumn Text="Delete" ButtonType="PushButton"
HeaderText="Delete" CommandName="delete" >
</asp:ButtonColumn>
</Columns>
</aspataGrid>


As you can see I have a button column in my datagrid . I want to
associate some javascript on this button .. if its a normal button we
can do it on codebehind page with adding an onClick attribute .. but
how can i do it if its a ButtonColumn inside datagrid ... it is
possible?


Amit Garg
Senior Developer
Transform AS
Web: http://www.transformgroup.no
Email: http://www.velocityreviews.com/forums/(E-Mail Removed)
Norway
Mobile: +47 98296005


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
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
Datagrid colums name ?? =?Utf-8?B?c2VyZ2UgY2FsZGVyYXJh?= ASP .Net 3 01-24-2006 01:52 PM
How can I display data in bounded colums? =?Utf-8?B?YmFzdWxhc3o=?= ASP .Net 1 05-11-2005 03:46 PM
Adding HeaderText and HeaderImageUrl to Colums in DataGrid Patrick Olurotimi Ige ASP .Net 1 03-11-2005 01:37 PM
radio button in colums are not grouped correctly George Paiva ASP .Net Datagrid Control 4 01-17-2004 04:38 AM
Dynamic Colums blake lawless ASP .Net 0 11-21-2003 10:22 PM



Advertisments