0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Visual Studio / Windows Forms Application > DataGridView > SelectAll()の反対はClearSelection()

Last updated at Posted at 2017-04-21
動作環境
Windows 7 Pro (32bit)
Microsoft Visual Studio 2017 Community
Sublime Text 2

関連 http://qiita.com/7of9/items/68bcf4c997ac11486d59

上記にてSelectAll()したものをクリップボード経由でcsvファイル出力した。
問題は、SelectAll()しっぱなしの状態ということ。

SelectAll()の反対はDeSelectAll()かUnSelectAll()というメソッドがあるかと思った。
関連: 技術英語 > unselect / deselect / clear @ The IBM Style Guide

ClearSelection()を使うようだ。メソッド名の対称性が悪い。
参考 http://stackoverflow.com/questions/4314673/how-to-deselect-all-selected-rows-in-a-datagridview-control

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?