private void GGC_TableControlCellDoubleClick(object sender, GridTableControlCellClickEventArgs e) { //Notify the double click performed in a cell Record rec = GGC.Table.DisplayElements[e.TableControl.CurrentCell.RowIndex].ParentRecord; //If(rec) IsNot Nothing Then if (rec != null) { frmBehaviorDetail = new frmBehaviorDetail(); frmBehaviorDetail.PK = (int)(rec.GetValue("PK")); frmBehaviorDetail.editMode(); frmBehaviorDetail.ShowDialog(); //MessageBox(frmBehaviorDetail.PK + ""); } }
private void btnDelete_Click(object sender, EventArgs e) { if (currentCellIndex < 0) { MessageBoxAdv.Show("¡ÃسÒàÅ×Í¡¢éÍÁÙÅã¹µÒÃÒ§¡è͹·ÓÃÒ¡ÒÃ!", "ÃÒ§ҹ¤ÇÒÁ¼Ô´¾ÅÒ´", MessageBoxButtons.OK, MessageBoxIcon.Warning); GGC.Focus(); } else { frmBehaviorDetail = new frmBehaviorDetail(); frmBehaviorDetail.editMode(); frmBehaviorDetail.deleteData(); RetrieveData(); currentCellIndex = -1; } }