I have an application that looks like it stops the width at 50, but if the mouse drags further and then is omitted, the width will be lower:
private void ListView1_ColumnWidthChanging(object sender, ColumnWidthChangingEventArgs e) { if (e.ColumnIndex ==0 & e.NewWidth <50) { e.Cancel = true; } }
I cannot figure out how to force the width of ColumnWidthChanged to 50 if changed width = < 50 . I do not need to fix the width of the columns, as the information will vary in length, and the strength of the minimum width.
Any suggestions?
source share