Click here to Skip to main content
15,889,116 members
Home / Discussions / C#
   

C#

 
QuestionChanging DataGridView selection Pin
Dan Neely12-Jun-09 4:44
Dan Neely12-Jun-09 4:44 
This is a bit of an odd question, but can I select a new row in a dgv and clear the old selection as an atomic operation? I can do it in two statements but that results in the SelectionChangedEvent firing twice.

dgv.ClearSelection();
dgv.Rows[e.RowIndex].Selected = true;


It is a truth universally acknowledged that a zombie in possession of brains must be in want of more brains.
-- Pride and Prejudice and Zombies

AnswerRe: Changing DataGridView selection Pin
Henry Minute12-Jun-09 6:39
Henry Minute12-Jun-09 6:39 
Questionvsto problem Pin
Mogaambo12-Jun-09 4:17
Mogaambo12-Jun-09 4:17 
AnswerRe: vsto problem Pin
EliottA12-Jun-09 4:21
EliottA12-Jun-09 4:21 
GeneralRe: vsto problem Pin
Mogaambo12-Jun-09 4:32
Mogaambo12-Jun-09 4:32 
GeneralRe: vsto problem Pin
OriginalGriff12-Jun-09 4:35
mveOriginalGriff12-Jun-09 4:35 
GeneralRe: vsto problem Pin
EliottA12-Jun-09 4:36
EliottA12-Jun-09 4:36 
GeneralRe: vsto problem Pin
Mogaambo12-Jun-09 7:14
Mogaambo12-Jun-09 7:14 
GeneralRe: vsto problem Pin
EliottA12-Jun-09 7:17
EliottA12-Jun-09 7:17 
GeneralRe: vsto problem Pin
Mogaambo12-Jun-09 7:31
Mogaambo12-Jun-09 7:31 
GeneralRe: vsto problem Pin
OriginalGriff12-Jun-09 8:21
mveOriginalGriff12-Jun-09 8:21 
AnswerRe: vsto problem Pin
Nagy Vilmos12-Jun-09 5:34
professionalNagy Vilmos12-Jun-09 5:34 
GeneralRe: vsto problem Pin
EliottA12-Jun-09 5:40
EliottA12-Jun-09 5:40 
GeneralRe: vsto problem Pin
Nagy Vilmos12-Jun-09 5:43
professionalNagy Vilmos12-Jun-09 5:43 
AnswerRe: vsto problem PinPopular
Randor 12-Jun-09 9:08
professional Randor 12-Jun-09 9:08 
GeneralTimeSpan equivalent for the working week Pin
hairy_hats12-Jun-09 4:04
hairy_hats12-Jun-09 4:04 
GeneralRe: TimeSpan equivalent for the working week Pin
Luc Pattyn12-Jun-09 4:11
sitebuilderLuc Pattyn12-Jun-09 4:11 
GeneralRe: TimeSpan equivalent for the working week Pin
hairy_hats12-Jun-09 4:23
hairy_hats12-Jun-09 4:23 
GeneralRe: TimeSpan equivalent for the working week Pin
Luc Pattyn12-Jun-09 4:27
sitebuilderLuc Pattyn12-Jun-09 4:27 
GeneralRe: TimeSpan equivalent for the working week Pin
hairy_hats12-Jun-09 4:49
hairy_hats12-Jun-09 4:49 
QuestionMCE Remote Controller Pin
ryan11712-Jun-09 2:46
ryan11712-Jun-09 2:46 
QuestionWMI Pin
arkiboys12-Jun-09 2:36
arkiboys12-Jun-09 2:36 
AnswerRe: WMI Pin
Dave Kreskowiak12-Jun-09 5:18
mveDave Kreskowiak12-Jun-09 5:18 
GeneralRe: WMI Pin
arkiboys12-Jun-09 8:08
arkiboys12-Jun-09 8:08 
GeneralRe: WMI Pin
Dave Kreskowiak12-Jun-09 11:15
mveDave Kreskowiak12-Jun-09 11:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.