Home All Groups Group Topic Archive Search About

How to highlight an entire row in a DataGridView?

Author
20 Apr 2006 9:14 PM
Hexman
I have a DataGridView with RowHeadersVisible = False.  When a user
clicks on a cell how do I highlight the entire row.  And secondly how
to (syntax) get the value of cells into variables.  I've looked at
SelectedRow, CurrentRow, but just dont' get it.

DataGridView1.SelectedRow.Column("CustNameDataGridViewTextBoxColumn").value


Is the above even close?


Thanks,

Hexman

Author
21 Apr 2006 2:31 PM
Aziz
Try the FullRowSelect property.
Author
22 Apr 2006 1:44 AM
Hexman
Thanks, I ought to open my eyes more fully.

Hexman


Show quote
On 21 Apr 2006 07:31:59 -0700, "Aziz" <aziz***@googlemail.com> wrote:

>Try the FullRowSelect property.

AddThis Social Bookmark Button