private void userDataGridView_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { DataGridViewRow userDataGridViewRow = userDataGridView.Rows[e.RowIndex]; DeleteOrEditUserForm deleteOrEditForm = new DeleteOrEditUserForm((int)userDataGridViewRow.Cells[0].Value, userDataGridView); deleteOrEditForm.userIDLabel.Text = (string)userDataGridViewRow.Cells[0].Value.ToString(); deleteOrEditForm.userNameTextBox.Text = (string)userDataGridViewRow.Cells[1].Value; deleteOrEditForm.userEMailTextBox.Text = (string)userDataGridViewRow.Cells[2].Value; deleteOrEditForm.Show(); }
private void userDataGridView_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { DataGridViewRow userDataGridViewRow = userDataGridView.Rows[e.RowIndex]; DeleteOrEditUserForm deleteOrEditForm = new DeleteOrEditUserForm((int)userDataGridViewRow.Cells[0].Value, userDataGridView); deleteOrEditForm.userIDLabel.Text = (string)userDataGridViewRow.Cells[0].Value.ToString(); deleteOrEditForm.userNameTextBox.Text = (string)userDataGridViewRow.Cells[1].Value; deleteOrEditForm.userEMailTextBox.Text = (string)userDataGridViewRow.Cells[2].Value; deleteOrEditForm.Show(); }