Fullrow select in DataGrid?

  • Thread starter Thread starter Matt
  • Start date Start date
M

Matt

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
 
Hi Mat,
The following should work, but I haven't tested it. Looks ok though.

Private Sub dgList_RowChanging(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles dglist.CurrentCellChanged

dglist.Select(dglist.CurrentCell.RowNumber)

End Sub

Best Regards,
Phil Harvey
 
Works like a charm, many thanks!

Matt

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

Private Sub dgList_RowChanging(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles dglist.CurrentCellChanged

dglist.Select(dglist.CurrentCell.RowNumber)

End Sub

Best Regards,
Phil Harvey
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top