private void btnDelete_Click(object sender, EventArgs e) { if (currentCellIndex < 0) { MessageBoxAdv.Show("¡ÃسÒàÅ×Í¡¢éÍÁÙÅã¹µÒÃÒ§¡è͹·ÓÃÒ¡ÒÃ!", "ÃÒ§ҹ¤ÇÒÁ¼Ô´¾ÅÒ´", MessageBoxButtons.OK, MessageBoxIcon.Warning); GGC.Focus(); } else { frmUserDetail = new frmUserDetail(); frmUserDetail.deleteData(); currentCellIndex = -1; } RetrieveData(); }
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) { frmUserDetail = new frmUserDetail(); frmUserDetail.TeacherID = rec.GetValue("TeacherID").ToString(); frmUserDetail.ShowDialog(); RetrieveData(); } RetrieveData(); }