hi.im.new
hi.im.new

Reputation: 239

VB.NET datagridview, I want the user only to be able to select rows and not individual cells

I want the user only to be able to select rows and not individual cells in a VB.NET DataGridView.

Is there a way to make this happen? I don't see an option for the DataGridView object to control this via properties.

Upvotes: 0

Views: 2025

Answers (2)

Hungry Mind
Hungry Mind

Reputation: 113

Set SelectionMode property as FullRowSelect

Upvotes: 0

Jay Riggs
Jay Riggs

Reputation: 53595

You're looking for the DataGridView.SelectionMode property.

You want FullRowSelect.

Upvotes: 1

Related Questions