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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. RowStyle- BorderWidth in Grid view not working in IE

RowStyle- BorderWidth in Grid view not working in IE

Scheduled Pinned Locked Moved ASP.NET
cssquestion
2 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.
  • A Offline
    A Offline
    ashok techxygen
    wrote on last edited by
    #1

    Internet Explorer is not supporting this . What shuld I do to get this code to be supported in IE ? when I tried to add the following properties to a grid view. GridLines="Horizontal" RowStyle-BorderColor="ActiveBorder" RowStyle-BorderStyle="dotted" RowStyle- BorderWidth="1px" i cannot set border width in IE but it works in firefox

    Ashok

    A 1 Reply Last reply
    0
    • A ashok techxygen

      Internet Explorer is not supporting this . What shuld I do to get this code to be supported in IE ? when I tried to add the following properties to a grid view. GridLines="Horizontal" RowStyle-BorderColor="ActiveBorder" RowStyle-BorderStyle="dotted" RowStyle- BorderWidth="1px" i cannot set border width in IE but it works in firefox

      Ashok

      A Offline
      A Offline
      Arindam Tewary
      wrote on last edited by
      #2

      if you have scenario when you have two diferent code which is working for 2 different browser then you you have identify which browser it is. You can do this by Javascript and then you have to set boder width by javascript code. detection of browser using javascript

      function whichBrs() {

      var agt=navigator.userAgent.toLowerCase();

      if (agt.indexOf("opera") != -1) return 'Opera';
      if (agt.indexOf("staroffice") != -1) return 'Star Office';
      if (agt.indexOf("webtv") != -1) return 'WebTV';
      if (agt.indexOf("beonex") != -1) return 'Beonex';
      if (agt.indexOf("chimera") != -1) return 'Chimera';
      if (agt.indexOf("netpositive") != -1) return 'NetPositive';
      if (agt.indexOf("phoenix") != -1) return 'Phoenix';
      if (agt.indexOf("firefox") != -1) return 'Firefox';
      if (agt.indexOf("safari") != -1) return 'Safari';
      if (agt.indexOf("skipstone") != -1) return 'SkipStone';
      if (agt.indexOf("msie") != -1) return 'Internet Explorer';
      if (agt.indexOf("netscape") != -1) return 'Netscape';
      if (agt.indexOf("mozilla/5.0") != -1) return 'Mozilla';
      if (agt.indexOf('\/') != -1) {
      if (agt.substr(0,agt.indexOf('\/')) != 'mozilla') {
      return navigator.userAgent.substr(0,agt.indexOf('\/'));}
      else return 'Netscape';} else if (agt.indexOf(' ') != -1)
      return navigator.userAgent.substr(0,agt.indexOf(' '));
      else return navigator.userAgent;
      }

      Hope it helps you :)

      Thanks, Arindam D Tewary

      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