ComponentOne FlexPivot for WinForms
C1.Win.FlexPivot.4.5.2 Assembly / C1.Win.FlexPivot Namespace / C1FlexPivotGrid Class / MouseCol Property

In This Topic
    MouseCol Property (C1FlexPivotGrid)
    In This Topic
    Gets the index of the column under the cursor.
    Syntax
    'Declaration
     
    Public Overridable ReadOnly Property MouseCol As Integer
    public virtual int MouseCol {get;}
    Remarks

    The C1.Win.C1FlexGrid.C1FlexGridBase.MouseRow and C1.Win.C1FlexGrid.C1FlexGridBase.MouseCol properties are often useful when handling the C1.Win.C1FlexGrid.C1FlexGridBase.BeforeMouseDown event, to provide custom mouse handling. They are also useful when handling mouse events that do not change the selection and for detecting clicks on the fixed areas of the grid.

    Typical uses for these properties include displaying help information or tooltips when the user moves the mouse over a selection, and the implementation of manual drag-and-drop manipulation of OLE objects.

    C1.Win.C1FlexGrid.C1FlexGridBase.MouseRow and C1.Win.C1FlexGrid.C1FlexGridBase.MouseCol return -1 if the mouse is not over any rows or columns.

    To obtain more detailed hit-testing information, use the C1.Win.C1FlexGrid.C1FlexGridBase.HitTest method.

    See Also