Ejemplo n.º 1
0
        void tileView_EditFormShowing(object sender, DevExpress.XtraGrid.Views.Grid.EditFormShowingEventArgs e)
        {
            TaskRecord taskRecord = (TaskRecord)tileView.GetRow(e.RowHandle);

            if (taskRecord.Id > 0 && taskRecord.Id < this.customAppointments.Count())
            {
                CustomAppointment customAppointment = this.customAppointments[taskRecord.Id];
                new Frm我创建的任务预览(customAppointment, this.currentEmpId, false).ShowDialog();
            }

            e.Allow = false;

            //e.Allow = !IsEmptyItem(e.RowHandle);
        }
Ejemplo n.º 2
0
        //private void FormatControl()
        //{

        //    FormatControl(this);
        //}
        //protected override void FormatControl(Control p_objControl)
        //{
        //    base.FormatControl(p_objControl);
        //}
        //protected override void loadDataForm(int p_iAuto_ID)
        //{
        //    _blistKhachHang = new BindingList<CDM_Khach_Hang>(_objKhachHangBUS.List_DM_Khach_Hang());
        //    grcKhachHang.DataSource = _blistKhachHang;
        //}

        private void CustomGridView1_EditFormShowing(object sender, DevExpress.XtraGrid.Views.Grid.EditFormShowingEventArgs e)
        {
            //    GridView view = (GridView)sender;
            //    if (view == null)
            //        return;
            //    if (view.IsNewItemRow(e.RowHandle))
            //    {
            //        CustomGridView1.OptionsEditForm.FormCaptionFormat = "Thêm mới khách hàng";
            //    }
            //    else
            //    {
            //        CustomGridView1.OptionsEditForm.FormCaptionFormat = "Sửa thông tin khách hàng";
            //    }
        }
Ejemplo n.º 3
0
        private void Artista_gridView_EditFormShowing(object sender, DevExpress.XtraGrid.Views.Grid.EditFormShowingEventArgs e)
        {
            Artista_gridView.OptionsEditForm.ShowUpdateCancelPanel = DefaultBoolean.False; ////trampa para disparar obligatoriamente el evento rowupdate
            // var _Procesando = (Artista) Artista_gridView.GetRow(e.RowHandle);
            //Artista_gridView.SetRowCellValue(e.RowHandle, colOrden, _Procesando.Orden + 1 - 1);
            //var _FirstOrDefault = Artista_gridView.Columns.FirstOrDefault(c => c == colMunicipioId);
            //if (_FirstOrDefault != null) _FirstOrDefault.Visible = true;

            //if (!_GlobalDataContext.FotoDeIntegrante.Any(c => c.ArtistaId == _Procesando.ArtistaID))
            //{
            //   // Artista_gridView.SetRowCellValue(e.RowHandle, colFotoId, null);
            //    //if (Imagen_repositoryItemPictureEdit.InitialImage!=null)
            ////Imagen_repositoryItemPictureEdit.InitialImage.Dispose();
            //}
        }
Ejemplo n.º 4
0
 void tileView_EditFormShowing(object sender, DevExpress.XtraGrid.Views.Grid.EditFormShowingEventArgs e)
 {
     e.Allow = !IsEmptyItem(e.RowHandle);
 }