Fullrow select in DataGrid?

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

    Fullrow select in DataGrid?

    Can someone tell me how to do (if possible) a fullrowselect in a datagrid?

    When you click on a cell it moves the arrow pointer in the gutte to the
    current cell, but if you click on the gutter it does a fullrow select...
    any way to get this to work with a cell click?

    Thanks,

    Matt


  • Phil Harvey

    #2
    RE: Fullrow select in DataGrid?

    Hi Mat,
    The following should work, but I haven't tested it. Looks ok though.

    Private Sub dgList_RowChang ing(ByVal sender As System.Object, ByVal e As
    System.EventArg s) Handles dglist.CurrentC ellChanged

    dglist.Select(d glist.CurrentCe ll.RowNumber)

    End Sub

    Best Regards,
    Phil Harvey

    "Matt" wrote:
    [color=blue]
    > Can someone tell me how to do (if possible) a fullrowselect in a datagrid?
    >
    > When you click on a cell it moves the arrow pointer in the gutte to the
    > current cell, but if you click on the gutter it does a fullrow select...
    > any way to get this to work with a cell click?
    >
    > Thanks,
    >
    > Matt
    >
    >
    >[/color]

    Comment

    • Matt

      #3
      Re: Fullrow select in DataGrid?

      Works like a charm, many thanks!

      Matt

      "Phil Harvey" <PhilHarvey@dis cussions.micros oft.com> wrote in message
      news:D41C938F-2B97-4ABA-A67C-FEA93B3936DE@mi crosoft.com...[color=blue]
      > Hi Mat,
      > The following should work, but I haven't tested it. Looks ok though.
      >
      > Private Sub dgList_RowChang ing(ByVal sender As System.Object, ByVal e As
      > System.EventArg s) Handles dglist.CurrentC ellChanged
      >
      > dglist.Select(d glist.CurrentCe ll.RowNumber)
      >
      > End Sub
      >
      > Best Regards,
      > Phil Harvey
      >
      > "Matt" wrote:
      >[color=green]
      >> Can someone tell me how to do (if possible) a fullrowselect in a
      >> datagrid?
      >>
      >> When you click on a cell it moves the arrow pointer in the gutte to the
      >> current cell, but if you click on the gutter it does a fullrow select...
      >> any way to get this to work with a cell click?
      >>
      >> Thanks,
      >>
      >> Matt
      >>
      >>
      >>[/color][/color]


      Comment

      Working...