예제 #1
0
        private void HandleBeforeSectionTrack(object sender, HeaderSectionWidthConformableEventArgs ea)
        {
            JetListViewColumn col = ColumnFromHeaderSection(ea.Item);

            if (col.FixedSize || col.SizeToContent || _processingHeaderOperation)
            {
                ea.Accepted = false;
            }
            else
            {
                _processingHeaderOperation = true;
                _trackColumn = col;
                OnInvalidate();
            }
        }
예제 #2
0
        private void HandleSectionTracking(object sender, HeaderSectionWidthConformableEventArgs ea)
        {
            int trackWidth = AdjustTrackWidth(ea.Width);
            int delta      = ea.Width - trackWidth;

            if (trackWidth >= 10)
            {
                _trackColumn.Width = trackWidth;
            }
            else
            {
                _trackColumn.Width = 10;
                ea.Item.Width      = 10 + delta;
            }
            OnInvalidate();
        }
예제 #3
0
 private void HandleBeforeSectionTrack(object sender, HeaderSectionWidthConformableEventArgs ea)
 {
     ea.Accepted = false;
 }