- - PR -
C# DataGridView 全ての選択を解除するには?
1
投稿者 | 投稿内容 |
---|---|
|
投稿日時: 2007-11-15 11:33
datagridview.SelectAll()
にて、全ての選択が可能な事は分かったのですが その反対で全ての選択解除する場合のメンバは 用意されていないように思うのですがどうなのでしょうか? また、ない場合にどのようにやるのが効率的なのでしょうか? 今は荒業で DataGridView.CurrentCell = DataGridView[0,1]; DataGridView.CurrentCell.Selected = false; DataGridView.CurrentCell = DataGridView[0, 0]; DataGridView.CurrentCell.Selected = true; DataGridView.CurrentCell = DataGridView[0, 0]; DataGridView.CurrentCell.Selected = false; と強引すぎる感じになっています。。。 |
|
投稿日時: 2007-11-15 12:42
ClearSelection()では?
|
1