Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to apply Style Sheet to PushButton in asp:ButtonColumn in datagrid?

How to apply Style Sheet to PushButton in asp:ButtonColumn in datagrid?

Scheduled Pinned Locked Moved ASP.NET
tutorialquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sinanju
    wrote on last edited by
    #1

    How to apply Style Sheet to PushButton in asp:ButtonColumn in datagrid? Any thing applied using datagrid properties, get applied to column not to button.

    P 1 Reply Last reply
    0
    • S sinanju

      How to apply Style Sheet to PushButton in asp:ButtonColumn in datagrid? Any thing applied using datagrid properties, get applied to column not to button.

      P Offline
      P Offline
      Pankaj Kulkarni
      wrote on last edited by
      #2

      Hi, Add the attribute (to that button tag in HTML) "cssclass='btn'" if your stylesheet has ".btn" class Pankaj Kulkarni -- modified at 2:18 Thursday 2nd February, 2006

      S 1 Reply Last reply
      0
      • P Pankaj Kulkarni

        Hi, Add the attribute (to that button tag in HTML) "cssclass='btn'" if your stylesheet has ".btn" class Pankaj Kulkarni -- modified at 2:18 Thursday 2nd February, 2006

        S Offline
        S Offline
        sinanju
        wrote on last edited by
        #3

        <asp:ButtonColumn Text="Delete" uttonType="PushButton" cssclass="btn" ommandName="Delete"> </asp:ButtonColumn> here cssclass="btn" gives error,i.e., not supported. <asp:ButtonColumn Text="Delete" uttonType="PushButton" ommandName="Delete"> <ItemStyle cssclass="btn"></ItemStyle> </asp:ButtonColumn> here cssclass="btn" get applied to coloumn of the button. So, I couldn't understand you, where to add this attribute.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups