Groups | Blog | Home
all groups > asp.net datagrid control > october 2004 >

asp.net datagrid control : Need help applying a stylesheet to a pushbutton control in a datagrid


Patrick.O.Ige
10/26/2004 9:35:02 PM
Hi Tim,
Yeah thats a good Question to ask here i did ask a similar Question but no
replies..
Anyway I tried doing this :-

<asp:EditCommandColumn
HeaderText="Editing"
EditText="<input type=submit value=edit style='color:Red'>"
UpdateText="Update"
CancelText="Cancel"
ButtonType="LinkButton"/>
I changed the PushButton to LinkButton but when i applied it
it the event stopped firing!
Let me know how u go..
Patrick


[quoted text, click to view]
Tim Meagher
10/26/2004 11:46:16 PM
Can anyone help me figure out how to apply a stylesheet to a pushbutton
defined in the asp:BoundColumn or asp:EditCommandColumn elements of a
datagrid?

Patrick.O.Ige
10/27/2004 12:41:01 AM
Thx Scott
Would try that out.


[quoted text, click to view]
Scott Mitchell [MVP]
10/27/2004 5:07:52 AM
[quoted text, click to view]

Tim, check out this FAQ:

Specifying a CssClass for a Button in a ButtonColumn
http://datawebcontrols.com/faqs/ButtonColumns/CssClassForButtons.shtml

Happy Programming!

--

Scott Mitchell
mitchell@4guysfromrolla.com
http://www.4GuysFromRolla.com

AddThis Social Bookmark Button