コード例 #1
0
        protected virtual void OnGridViewMouseDown(UxGridView gridView, MouseEventArgs e)
        {
            // Check if the end-user has right clicked the grid control.
            if (e.Button != MouseButtons.Left)
            {
                return;
            }

            //valid hit test?
            var col = gridView.ColumnAt(e);

            if (col == null)
            {
                return;
            }

            var rowHandle = gridView.RowHandleAt(e);

            if (rowHandle < 0)
            {
                return;
            }

            gridView.PostEditor();

            if (!ColumnIsValue(col))
            {
                gridView.EditorShowMode = EditorShowMode.Default;
                return;
            }

            OnValueColumnMouseDown(gridView, col, rowHandle);
        }