private void ShowChangeContact() { DataRow dr = dsGroup.Tables[0].Rows[listBoxControl1.SelectedIndex]; frmContact contact = new frmContact(dr[valueFieldGroup], genContact, tableNameContact, gridView1.GetDataRow(gridView1.FocusedRowHandle)); ProtocolForm.ShowModalDialog(this, contact); gridControl1.DataSource = GetDataSetContact(dr[valueFieldGroup].ToString()).Tables[0]; }
private void barThemContact_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { DataRow dr = dsGroup.Tables[0].Rows[listBoxControl1.SelectedIndex]; frmContact contact = new frmContact(dr[valueFieldGroup], genContact, tableNameContact); ProtocolForm.ShowModalDialog(this, contact); gridControl1.DataSource = GetDataSetContact(dr[valueFieldGroup].ToString()).Tables[0]; }