private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex > 0) { if (EventCtr != null) { humanresourcesDataSet.clientRow checkClient = (this.dataGridView1.SelectedRows[0].DataBoundItem as DataRowView).Row as humanresourcesDataSet.clientRow; if (string.IsNullOrEmpty(checkClient.Client_name)) { EventCtr.Text = checkClient.Client_nameE; } else { EventCtr.Text = checkClient.Client_name; } EventCtr.Tag = checkClient.Client_id; this.Close(); } else { FrmCusromerInfo fui = new FrmCusromerInfo(((this.dataGridView1.Rows[e.RowIndex].DataBoundItem as DataRowView).Row as humanresourcesDataSet.clientRow).Client_id); fui.MdiParent = this.MdiParent; fui.Show(); } } }
private void tsmiClientInfo_Click(object sender, EventArgs e) { if ((dataGridView1.SelectedRows[0].DataBoundItem as DataRowView).Row.GetType() == typeof(humanresourcesDataSet.clientRow)) { FrmCusromerInfo fui = new FrmCusromerInfo(((dataGridView1.SelectedRows[0].DataBoundItem as DataRowView).Row as humanresourcesDataSet.clientRow).Client_id); fui.MdiParent = this.MdiParent; fui.Show(); } }
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (dataGridView1.Rows[e.RowIndex].DataBoundItem.GetType() == typeof(humanresourcesDataSet.clientRow)) { FrmCusromerInfo fui = new FrmCusromerInfo((dataGridView1.Rows[e.RowIndex].DataBoundItem as humanresourcesDataSet.clientRow).Client_id); fui.MdiParent = this.MdiParent; fui.Show(); } }
private void tsmiClientInfo_Click(object sender, EventArgs e) { FrmCusromerInfo fci = new FrmCusromerInfo(((this.dataGridView1.SelectedRows[0].DataBoundItem as DataRowView).Row as humanresourcesDataSet.vw_recommendedRow).Client_id); fci.MdiParent = this.MdiParent; fci.Show(); }
private void tsmiClientinfo_Click(object sender, EventArgs e) { if (dataGridView1.SelectedRows.Count > 0) { FrmCusromerInfo fci = new FrmCusromerInfo((dataGridView1.SelectedRows[0].DataBoundItem as humanresourcesDataSet.vw_orderRow).Client_id); fci.MdiParent = this.MdiParent; fci.Show(); } }