Ejemplo n.º 1
0
        public override void GC_Body_MouseDown(object sender, MouseEventArgs e)
        {
            GridHitInfo hitInfo = GV_Body.CalcHitInfo(e.Location);

            if (hitInfo == null || hitInfo.Column == null)
            {
                return;
            }
            if (GetGridStatu() == GridStatu.gsEdit)
            {
                if (hitInfo.InRowCell)
                {
                    if (hitInfo.Column.RealColumnEdit is RepositoryItemCheckEdit)
                    {
                        GV_Body.FocusedColumn    = hitInfo.Column;
                        GV_Body.FocusedRowHandle = hitInfo.RowHandle;
                        GV_Body.ShowEditor();
                        CheckEdit edit = GV_Body.ActiveEditor as CheckEdit;
                        if (edit == null)
                        {
                            return;
                        }
                        edit.Toggle();
                        DXMouseEventArgs.GetMouseArgs(e).Handled = true;
                        GV_Body.CloseEditor();
                    }
                }
            }
        }