Data grid view selection defaults when form loses/regains focus

Dracarnion

Member
Joined
Apr 10, 2007
Messages
11
Programming Experience
5-10
Hey - I have a program that I'm writing for a user that uses it alongside another application I wrote. When he selects something in the datagridview in one program and switches to the other program and back, the first column/row gets selected and he loses the cell he had selected.

Is there a way to disable this so that when he goes back and forth between programs the datagridview will not default to the first cell? The same thing is also happening when he sorts a row; the sorting defaults to what it was originally.

Thanks in advance!
 
Back
Top