Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
各行にその行を選択するためのチェックボックスを備えたリストビューがあります...そして、リストビューの上にすべて選択チェックボックスがあり、クリックですべての行を選択し、その逆も可能です. ...
ListItem item = default(ListItem); foreach ( item in MyListView.ListItems) { item.Selected = true; }
項目の代わりにチェックボックス ID を使用して、チェックを入れるか、またはその逆を行うことができます。
オブジェクト ListView には clearChoices() というメソッドがあります。