Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - What do the four attribute values of SelectionMode in datagridviewz in C# mean?
What do the four attribute values of SelectionMode in datagridviewz in C# mean?
DataGridViewSelectionMode。 Column header selection Click the column header to select the entire column.

DataGridViewSelectionMode。 Column selection Click a column header or a cell in a column to select an entire column.

DataGridViewSelectionMode。 Whole row selection You can select the whole row by clicking the row header or the cells in the row.

DataGridViewSelectionMode。 Row header selection Click the header to select the entire row.

DataGridViewSelectionMode。 Cellselect can select one or more cells.

These properties are a selection mode, just as text boxes control whether you set a single-line text box or a multi-line text box at design time.