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