示例#1
0
 private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex >= 0)
     {
         FrmUserInfo fui = new FrmUserInfo((dataGridView1.Rows[e.RowIndex].DataBoundItem as humanresourcesDataSet.usersRow).User_id);
         fui.MdiParent = this.MdiParent;
         fui.Show();
     }
 }
示例#2
0
 private void tsmiUserInfo_Click(object sender, EventArgs e)
 {
     if (dataGridView1.SelectedRows.Count > 0)
     {
         FrmUserInfo fui = new FrmUserInfo((dataGridView1.SelectedRows[0].DataBoundItem as humanresourcesDataSet.vw_orderRow).User_id);
         fui.MdiParent = this.MdiParent;
         fui.Show();
     }
 }
示例#3
0
 private void tsmiUserInfo_Click(object sender, EventArgs e)
 {
     FrmUserInfo fui = new FrmUserInfo(Convert.ToInt32(dataGridView1.SelectedRows[0].Cells[0].Value));
     fui.MdiParent = this.MdiParent;
     fui.Show();
 }