private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex < 0) { return; } dataGridView1.MultiSelect = true; int inde = e.RowIndex; dataGridView1.Rows[inde].Selected = true; }
CellValueChanged
CellClick
public bool MultiSelect { get; set; } MultiSelect = true and SelectionMode = cellSelect
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)