Horje
c# datagridview multiple row selection without control Code Example
c# datagridview multiple row selection without control
    private List<int> SelectedIndexs { get; set; }
	private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
    {
        if (SelectedIndexs.Contains(e.RowIndex))
        {
            SelectedIndexs.Remove(e.RowIndex);
        }
        else
        {
            SelectedIndexs.Add(e.RowIndex);
        }

        foreach (DataGridViewRow row in this.dataGridView1.Rows)
        {
            row.Selected = SelectedIndexs.Contains(row.Index);
        }
    }




Csharp

Related
run async method parallel c# Code Example run async method parallel c# Code Example
published net core did not have wwwroot Code Example published net core did not have wwwroot Code Example
div element position in screen Code Example div element position in screen Code Example
C# string length Code Example C# string length Code Example
c# list any retun indec Code Example c# list any retun indec Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10