Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > Button in column header

Reply
Thread Tools

Button in column header

 
 
Mark Schubert
Guest
Posts: n/a
 
      11-20-2003
I want to put a button in a column header. How do I handle the event when
the button is clicked?


 
Reply With Quote
 
 
 
 
Alvin Bruney
Guest
Posts: n/a
 
      11-21-2003
you can either hook the event up to a handler manually
button1.click += new function goes here

or you can set the button id, and handle the itemcommand event and filter
for this unique id.
if e.item.commandname == "unique button name"
do something

roughly

regards

--


-----------
Got TidBits?
Get it here: www.networkip.net/tidbits
"Mark Schubert" <> wrote in message
news:...
> I want to put a button in a column header. How do I handle the event when
> the button is clicked?
>
>



 
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
Header files with "header.h" or <header.h> ?? mlt C++ 2 01-31-2009 02:54 PM
Programmatically set template column column header value jdhavo@yahoo.com ASP .Net Datagrid Control 2 08-19-2006 04:17 AM
Sortable column on DataGrid -- column header not displaying Teej ASP .Net Datagrid Control 2 08-15-2006 06:23 PM
datagrid having row header and column header krishna.dwivedi@gmail.com ASP .Net Datagrid Control 0 07-13-2006 08:20 AM
Image in header column (not replacing column header text) hansiman ASP .Net Datagrid Control 3 02-07-2004 12:17 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57