src/Misc/EFTools/DesignXmlCore/VirtualTreeGrid/UI/ColumnHeader.cs
/// <summary>
///     Called when a column header is clicked. Fires the ColumnHeaderClick event if enabled, and
///     calls AutoSizeColumn for a DividerDoubleClick if the event was not handled by the user.
/// </summary>
/// <param name="e">VirtualTreeColumnHeaderClickEventArgs</param>
Called when a column header is clicked. Fires the ColumnHeaderClick event if enabled, and
calls AutoSizeColumn for a DividerDoubleClick if the event was not handled by the user.
Called when a column header is clicked . Fires the ColumnHeaderClick event if enabled and calls AutoSizeColumn for a DividerDoubleClick if the event was not handled by the user .
protected virtual void OnColumnHeaderClick(VirtualTreeColumnHeaderClickEventArgs e)
        {
            var handler = Events[EVENT_COLUMNHEADERCLICKED] as VirtualTreeColumnHeaderClickEventHandler;
            var handled = false;
            if (handler != null)
            {
                handler(this, e);
                handled = e.Handled;
            }
            if (!handled
                && e.ClickStyle == VirtualTreeColumnHeaderClickStyle.DividerDoubleClick)
            {
                AutoSizeColumn(e.Column);
            }
        }
protected virtual void OnColumnHeaderClick ( VirtualTreeColumnHeaderClickEventArgs e ) { var handler = Events [ EVENT_COLUMNHEADERCLICKED ] as VirtualTreeColumnHeaderClickEventHandler ; var handled = false ; if ( handler != null ) { handler ( this , e ) ; handled = e . Handled ; } if ( ! handled && e . ClickStyle == VirtualTreeColumnHeaderClickStyle . DividerDoubleClick ) { AutoSizeColumn ( e . Column ) ; } }
Called when a column header is clicked.
Called when a column header is clicked .
e
VirtualTreeColumnHeaderClickEventArgs
None