Answers for "Getting data from selected datagridview row and which event"

C#
1

Getting data from selected datagridview row and which event

private void dataGridView_SelectionChanged(object sender, EventArgs e) 
{
    foreach (DataGridViewRow row in dataGridView.SelectedRows) 
    {
        string value1 = row.Cells[0].Value.ToString();
        string value2 = row.Cells[1].Value.ToString();
        //...
    }
}
Posted by: Guest on May-06-2022

Code answers related to "Getting data from selected datagridview row and which event"

C# Answers by Framework

Browse Popular Code Answers by Language