How to highlight an entire row in a DataGridView?

H

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
 

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

Top