Datagrid Column Text

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Li Pang

    Datagrid Column Text

    Hi,

    I created a datagrid with several columns, one has text align right,
    however, the last letter of the column head is hard to see. I tried to add
    some spaces but they are supressed at the run time, I want to know how to add
    some spaces at the end of the head text, or is it possible to set text align
    center for the head and text align center for the data on this column?

    thanks in advance
  • Lucky

    #2
    Re: Datagrid Column Text

    try to inrease the width of the column header this should solve your
    problem.

    Comment

    • Lucky

      #3
      Re: Datagrid Column Text

      i forgot to mentioned that increasing the width of the column header
      means u have to specify numeric value in width property of the column.

      Comment

      • Ken Tucker [MVP]

        #4
        Re: Datagrid Column Text

        Hi,

        Here is a link to columnstyle that allows you to align the data
        and header differently.



        Ken
        ----------------
        "Li Pang" <LiPang@discuss ions.microsoft. com> wrote in message
        news:A648CBF2-ADC1-432D-BBE1-5426F805DFEA@mi crosoft.com...[color=blue]
        > Hi,
        >
        > I created a datagrid with several columns, one has text align right,
        > however, the last letter of the column head is hard to see. I tried to add
        > some spaces but they are supressed at the run time, I want to know how to
        > add
        > some spaces at the end of the head text, or is it possible to set text
        > align
        > center for the head and text align center for the data on this column?
        >
        > thanks in advance[/color]


        Comment

        • Li Pang

          #5
          Re: Datagrid Column Text

          Lucky,

          The width is big enough. Only the last letter seems hard to see when using
          text align right. I can add some chararcters like "_" or "." but not nice as
          space.

          "Lucky" wrote:
          [color=blue]
          > i forgot to mentioned that increasing the width of the column header
          > means u have to specify numeric value in width property of the column.
          >
          >[/color]

          Comment

          • Lucky

            #6
            Re: Datagrid Column Text

            hi Li,
            i tried one exlample but it's working well at my end. i dont get it how
            it could not working with you. are you using colorful table style? coz
            i've just code one datagrid with default options and it's working fine.

            Comment

            Working...