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;
}
}
}
}