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. General Programming
  3. C#
  4. Remove default style border-collapse:collapse from datagrid?

Remove default style border-collapse:collapse from datagrid?

Scheduled Pinned Locked Moved C#
helptutorialquestion
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.
  • N Offline
    N Offline
    NetRams
    wrote on last edited by
    #1

    Hi, I have created datagrid. When I look at its view sourse it creates table with default style as style="border-collapse:collapse". This style will affect my default style. Could anyone help me how to remove this default style in datagrid. I have used datagrid.controlstyle.reset(), but no luck. Regards Rams.

    Be simple and Be sample.

    T 2 Replies Last reply
    0
    • N NetRams

      Hi, I have created datagrid. When I look at its view sourse it creates table with default style as style="border-collapse:collapse". This style will affect my default style. Could anyone help me how to remove this default style in datagrid. I have used datagrid.controlstyle.reset(), but no luck. Regards Rams.

      Be simple and Be sample.

      T Offline
      T Offline
      toranj_1455
      wrote on last edited by
      #2

      hi create a css file and set this: .TableStyle {border-collapse:separate !important;} or in your head tag insert: <style> .TableStyle {border-collapse:separate !important;} </style> then in your datagrid set: cssClass="TableStyle" have a nice time ;) Alireza www.toranjnet.com

      1 Reply Last reply
      0
      • N NetRams

        Hi, I have created datagrid. When I look at its view sourse it creates table with default style as style="border-collapse:collapse". This style will affect my default style. Could anyone help me how to remove this default style in datagrid. I have used datagrid.controlstyle.reset(), but no luck. Regards Rams.

        Be simple and Be sample.

        T Offline
        T Offline
        toranj_1455
        wrote on last edited by
        #3

        hi create a css file and set this: .TableStyle {border-collapse:separate !important;} or in your head tag insert: <style> .TableStyle {border-collapse:separate !important;} </style> then in your datagrid set: cssClass="TableStyle"   have a nice time ;) Alireza www.toranjnet.com

        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