Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
固定列宽
Browse files Browse the repository at this point in the history
  • Loading branch information
SugarMGP committed Dec 6, 2020
1 parent 7edf7de commit aad8525
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions SeewoHelper/Forms/WindowMain.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions SeewoHelper/Forms/WindowMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,11 @@ private void ButtonSubjectStorageInfoAdd_Click(object sender, EventArgs e)
listViewSubjectStorageInfos.Items.Add(item);
}
}

private void listViewSubjectStorageInfos_ColumnWidthChanging(object sender, ColumnWidthChangingEventArgs e)
{
e.Cancel = true;
e.NewWidth = listViewSubjectStorageInfos.Columns[e.ColumnIndex].Width;
}
}
}

0 comments on commit aad8525

Please sign in to comment.