locked
GridView row text size RRS feed

  • Question

  • User234418024 posted

    I believe I have the adapter working, and I'm playing around with the various css options. I can't seem to make the actual text content that fills the gridview bigger. Anyone know what controls the size size?

     Much thanks!

    Wednesday, January 30, 2008 11:14 PM

Answers

  • User312496708 posted

    You can use the font-size attribute of the css to play with the font of the text. This style or css can directly be placed in the bound column last name or any other column.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, January 31, 2008 12:25 AM

All replies

  • User869361640 posted

    You can use div to control width of the grid with using the option div scroll. below is the example

    <div style="overflow: scroll; width: 756px; height: 279px">

    Inside this you specify the grid.

    Wednesday, January 30, 2008 11:56 PM
  • User234418024 posted

     

    I'm talking about the size of the text from a column that fills the CssFriendly GridView Control Adapter. For example, column Last name, I can't change the color or size of the last name Smith. I can change the color, borders, header, footer, etc. for the Gridview itself fine. However, not the actual GridView column content. It seems small to my eyes at font size 10 perhaps.

    I could see the change the following does when I change values but the actual GridView column data seems unaffected.

    .SampleGridView .AspNet-GridView table
    {

    border: solid 1px #FFFFFF;

    width: 100%;

    }

    Thursday, January 31, 2008 12:21 AM
  • User312496708 posted

    You can use the font-size attribute of the css to play with the font of the text. This style or css can directly be placed in the bound column last name or any other column.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, January 31, 2008 12:25 AM
  • User234418024 posted

    Thanks vikran. That was it. I used the font-size: 150% (see below) following and it increased the size of the column data in the Gridview. Thanks much.

     .SampleGridView .AspNet-GridView table

    {

    border: solid 1px #FFFFFF;

    font-size: 150%;

    width: 100%;

    }

    Thursday, January 31, 2008 3:27 PM