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. Vertical gridveiw header text make header column width changed

Vertical gridveiw header text make header column width changed

Scheduled Pinned Locked Moved ASP.NET
helpcssquestion
4 Posts 4 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
    Andraw111
    wrote on last edited by
    #1

    Hi, all, I have a grid data table that will list all the modules(at most 14, if use it, put 'X' in the column) each project used, the project name and used modules in one row. My problem is that since the module name that is put at header is long, so I want to make module name vertical in header as the following in RowDataBound() method: if (e.Row.RowType == DataControlRowType.Header) { ////loop all columns e.Row.Cells[j + 2].Attributes.Add("style", "FILTER: flipv fliph;WRITING-MODE: tb-rl;"); } But after flip the text, it looks very ugly, if I original have red color as background color for header, after vertical text, each column has two color: red, white; the text column doesn't fit the gridview column. I try to set gridview column width, and set the same width in the above style setting, still doesn't work, can anybody help me?? Thank you very much.

    T A S 3 Replies Last reply
    0
    • A Andraw111

      Hi, all, I have a grid data table that will list all the modules(at most 14, if use it, put 'X' in the column) each project used, the project name and used modules in one row. My problem is that since the module name that is put at header is long, so I want to make module name vertical in header as the following in RowDataBound() method: if (e.Row.RowType == DataControlRowType.Header) { ////loop all columns e.Row.Cells[j + 2].Attributes.Add("style", "FILTER: flipv fliph;WRITING-MODE: tb-rl;"); } But after flip the text, it looks very ugly, if I original have red color as background color for header, after vertical text, each column has two color: red, white; the text column doesn't fit the gridview column. I try to set gridview column width, and set the same width in the above style setting, still doesn't work, can anybody help me?? Thank you very much.

      T Offline
      T Offline
      T M Gray
      wrote on last edited by
      #2

      What exactly is your question? You talk about the colors and it being ugly. Are the colors pertinent to the question? You mention module names being in the row, but then you say they are in the header. Which is it?

      1 Reply Last reply
      0
      • A Andraw111

        Hi, all, I have a grid data table that will list all the modules(at most 14, if use it, put 'X' in the column) each project used, the project name and used modules in one row. My problem is that since the module name that is put at header is long, so I want to make module name vertical in header as the following in RowDataBound() method: if (e.Row.RowType == DataControlRowType.Header) { ////loop all columns e.Row.Cells[j + 2].Attributes.Add("style", "FILTER: flipv fliph;WRITING-MODE: tb-rl;"); } But after flip the text, it looks very ugly, if I original have red color as background color for header, after vertical text, each column has two color: red, white; the text column doesn't fit the gridview column. I try to set gridview column width, and set the same width in the above style setting, still doesn't work, can anybody help me?? Thank you very much.

        A Offline
        A Offline
        Abhijit Jana
        wrote on last edited by
        #3

        Your question is not clear. Can you please rephrase your question.

        Cheers ! Abhijit Jana | MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

        1 Reply Last reply
        0
        • A Andraw111

          Hi, all, I have a grid data table that will list all the modules(at most 14, if use it, put 'X' in the column) each project used, the project name and used modules in one row. My problem is that since the module name that is put at header is long, so I want to make module name vertical in header as the following in RowDataBound() method: if (e.Row.RowType == DataControlRowType.Header) { ////loop all columns e.Row.Cells[j + 2].Attributes.Add("style", "FILTER: flipv fliph;WRITING-MODE: tb-rl;"); } But after flip the text, it looks very ugly, if I original have red color as background color for header, after vertical text, each column has two color: red, white; the text column doesn't fit the gridview column. I try to set gridview column width, and set the same width in the above style setting, still doesn't work, can anybody help me?? Thank you very much.

          S Offline
          S Offline
          sashidhar
          wrote on last edited by
          #4

          i Think as far as my understanding it the problem with the browser related issues..!So you have fix the width..! This is Only my understanding of your question..!

          LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

          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