Single Click CheckEdit in GridView Devexpress

0 thích 0 không thích
1 lượt xem
đã hỏi 18 Tháng 12, 2021 trong Devexpress bởi nguyenthao (9,000 điểm)
private void GridView1_MouseDown(object sender, MouseEventArgs e)
        {
            if ((Control.ModifierKeys & Keys.Control) != Keys.Control)
            {
                GridView view = sender as GridView;
                GridHitInfo hi = view.CalcHitInfo(e.Location);
                if (hi.InRowCell)
                {
                    view.FocusedRowHandle = hi.RowHandle;
                    view.FocusedColumn = hi.Column;
                    view.ShowEditor();
                    CheckEdit edit = (view.ActiveEditor as CheckEdit);
                    if (edit != null)
                    {
                        edit.Toggle();
                        (e as DevExpress.Utils.DXMouseEventArgs).Handled = true;
                    }
                }
            }
        }
Looking for an answer?  Share this question:     

Xin vui lòng đăng nhập hoặc đăng ký để trả lời câu hỏi này.

...