private void repositoryItemButtonEditDetails_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     DataSources.dsTeachersUnion.Qry9Row row = (DataSources.dsTeachersUnion.Qry9Row)gridViewData.GetDataRow(gridViewData.FocusedRowHandle);
     TblMemberAttachFrm frm = new TblMemberAttachFrm(row.MemberId);
     frm.StartPosition = FormStartPosition.CenterScreen;
     frm.ShowDialog();
 }
        private void repositoryItemButtonEditEdit_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            GridView GV = (GridView)gridControlData.MainView;
            DataSources.dsTeachersUnionQuery.Qry20Row Row = (DataSources.dsTeachersUnionQuery.Qry20Row)GV.GetFocusedDataRow();

            TblMemberAttachFrm frm = new TblMemberAttachFrm(Row.MemberId);
            frm.ShowDialog();
        }