Nota
Pristup ovoj stranici zahteva autorizaciju. Možete pokušati da se prijavite ili promenite direktorijume.
Pristup ovoj stranici zahteva autorizaciju. Možete pokušati da promenite direktorijume.
The following code example demonstrates how to configure a DataGridView control so that clicking anywhere within a row automatically selects the entire row, and so that only one row at a time can be selected.
Example
this.dataGridView1.SelectionMode =
DataGridViewSelectionMode.FullRowSelect;
this.dataGridView1.MultiSelect = false;
With Me.dataGridView1
.SelectionMode = DataGridViewSelectionMode.FullRowSelect
.MultiSelect = False
End With
Compiling the Code
This example requires:
A DataGridView control named
dataGridView1.References to the System and System.Windows.Forms assemblies.
See also
.NET Desktop feedback