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; }
public bool MultiSelect { get; set; } MultiSelect = true and SelectionMode = cellSelect
CellValueChanged
CellClick
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)