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(); } }
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(); }
private void HandleBeforeSectionTrack(object sender, HeaderSectionWidthConformableEventArgs ea) { ea.Accepted = false; }