foreach (DataGridViewRow dataGridViewRow in myDataGridView.SelectedRows) { addNewResourceDictionary.Add(dataGridViewRow.Cells[0].Value.ToString(), dataGridViewRow.Cells[1].Value.ToString()); ; }
foreach (DataGridViewRow dGRow in myDataGridView.SelectedRows) { addNewResourceDictionary.Add(dataGridViewRow.Rows[dGRow].Cells[0].Value.ToString(), dataGridViewRow.Rows[dGRow].Cells[1].Value.ToString()); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)