Hide datagrid row selector

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

    Hide datagrid row selector

    How do I hide the rowselector on a datagrid?
    Also, it there a way of changing its width?

    By row selector, I mean the that grey column on the left hand side, where
    the arrow appears when you click into a row.
    Thanks
    Vayse


  • Chris

    #2
    Re: Hide datagrid row selector

    Vayse wrote:[color=blue]
    > How do I hide the rowselector on a datagrid?
    > Also, it there a way of changing its width?
    >
    > By row selector, I mean the that grey column on the left hand side, where
    > the arrow appears when you click into a row.
    > Thanks
    > Vayse
    >
    >[/color]

    To remove the row header try:
    RowHeadersVisib le = False

    If you apply a datagridtablest yle you need to set it to false in there
    too. I've never seen a way to change it's width, but doesn't mean you
    can't do it...

    Chris

    Comment

    • Cor Ligthert [MVP]

      #3
      Re: Hide datagrid row selector

      Vayse,

      I know that it is difficult to find, however it is named the rowheader



      I hope this helps,

      Cor


      Comment

      • Vayse

        #4
        Re: Hide datagrid row selector

        Thanks guys, but thats not it.
        Even with the rowheaders hidden, the rowselector still appears. Any other
        ideas?


        "Cor Ligthert [MVP]" <notmyfirstname @planet.nl> wrote in message
        news:OJv7RrM1FH A.268@TK2MSFTNG P09.phx.gbl...[color=blue]
        > Vayse,
        >
        > I know that it is difficult to find, however it is named the rowheader
        >
        > http://msdn.microsoft.com/library/de...sibletopic.asp
        >
        > I hope this helps,
        >
        > Cor
        >[/color]


        Comment

        • Cor Ligthert [MVP]

          #5
          Re: Hide datagrid row selector

          Vayse,

          What kind of datagrid are you using, if I use this and the columnheader
          visible is false, than I see only rows and items while one of the items is
          selected.

          Cor

          "Vayse" <Vayse@nospam.n ospam> schreef in bericht
          news:OyBMRaZ1FH A.916@TK2MSFTNG P10.phx.gbl...[color=blue]
          > Thanks guys, but thats not it.
          > Even with the rowheaders hidden, the rowselector still appears. Any other
          > ideas?
          >
          >
          > "Cor Ligthert [MVP]" <notmyfirstname @planet.nl> wrote in message
          > news:OJv7RrM1FH A.268@TK2MSFTNG P09.phx.gbl...[color=green]
          >> Vayse,
          >>
          >> I know that it is difficult to find, however it is named the rowheader
          >>
          >> http://msdn.microsoft.com/library/de...sibletopic.asp
          >>
          >> I hope this helps,
          >>
          >> Cor
          >>[/color]
          >
          >[/color]


          Comment

          • Vayse

            #6
            Re: Hide datagrid row selector

            Heres a picture of what I mean:





            "Cor Ligthert [MVP]" <notmyfirstname @planet.nl> wrote in message
            news:eZ823%23Z1 FHA.3124@TK2MSF TNGP12.phx.gbl. ..[color=blue]
            > Vayse,
            >
            > What kind of datagrid are you using, if I use this and the columnheader
            > visible is false, than I see only rows and items while one of the items
            > is selected.
            >
            > Cor
            >
            > "Vayse" <Vayse@nospam.n ospam> schreef in bericht
            > news:OyBMRaZ1FH A.916@TK2MSFTNG P10.phx.gbl...[color=green]
            >> Thanks guys, but thats not it.
            >> Even with the rowheaders hidden, the rowselector still appears. Any other
            >> ideas?
            >>
            >>
            >> "Cor Ligthert [MVP]" <notmyfirstname @planet.nl> wrote in message
            >> news:OJv7RrM1FH A.268@TK2MSFTNG P09.phx.gbl...[color=darkred]
            >>> Vayse,
            >>>
            >>> I know that it is difficult to find, however it is named the rowheader
            >>>
            >>> http://msdn.microsoft.com/library/de...sibletopic.asp
            >>>
            >>> I hope this helps,
            >>>
            >>> Cor
            >>>[/color]
            >>
            >>[/color]
            >
            >[/color]


            Comment

            • Cor Ligthert [MVP]

              #7
              Re: Hide datagrid row selector

              That should go as Chris and I almost have answered you in the same time.

              Chris gave you even more code than me completly it is.

              MyDatagrid.RowH eadersVisible = False

              I hope this helps,

              Cor


              Comment

              • Vayse

                #8
                Re: Hide datagrid row selector

                Yep, that works. Thanks.

                "Cor Ligthert [MVP]" <notmyfirstname @planet.nl> wrote in message
                news:OEpMKJi1FH A.3060@TK2MSFTN GP10.phx.gbl...[color=blue]
                > That should go as Chris and I almost have answered you in the same time.
                >
                > Chris gave you even more code than me completly it is.
                >
                > MyDatagrid.RowH eadersVisible = False
                >
                > I hope this helps,
                >
                > Cor
                >[/color]


                Comment

                Working...