/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void dataGridViewOption_CellClick(object sender, DataGridViewCellEventArgs e) { if (dataGridViewOption.Rows[e.RowIndex].Cells[5].Selected) { ShareHeaderId = Convert.ToInt32(dataGridViewOption.Rows[e.RowIndex].Cells[4].Value); ShareDetail shareDetail = new ShareDetail(); shareDetail.Show(); } iintUpdateId = Convert.ToInt32(dataGridViewOption.Rows[e.RowIndex].Cells[4].Value); txtShareNameOption.Text = Convert.ToString(dataGridViewOption.Rows[e.RowIndex].Cells[1].Value); lblBuyOption.Text = iintUpdateId.ToString(); lblSelloption.Text = iintUpdateId.ToString(); }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void dataGridViewDelivery_CellClick(object sender, DataGridViewCellEventArgs e) { if (dataGridViewDelivery.Rows[e.RowIndex].Cells[6].Selected) { ShareHeaderId = Convert.ToInt32(dataGridViewDelivery.Rows[e.RowIndex].Cells[5].Value); ShareDetail shareDetail = new ShareDetail(); shareDetail.Show(); } iintUpdateId = Convert.ToInt32(dataGridViewDelivery.Rows[e.RowIndex].Cells[5].Value); txtShareNameDelivery.Text = Convert.ToString(dataGridViewDelivery.Rows[e.RowIndex].Cells[1].Value); //cmbSeviceDelivery.SelectedItem = lblBuyId.Text = iintUpdateId.ToString(); lblSellId.Text = iintUpdateId.ToString(); }