Click here to Skip to main content
15,899,474 members
Home / Discussions / C#
   

C#

 
GeneralRe: scroll to a certain row in Excel? Pin
novadProt15-Apr-05 19:48
novadProt15-Apr-05 19:48 
QuestionString.Replace...does it even work? Pin
FocusedWolf15-Apr-05 11:23
FocusedWolf15-Apr-05 11:23 
AnswerRe: String.Replace...does it even work? Pin
afinnell15-Apr-05 11:33
afinnell15-Apr-05 11:33 
GeneralRe: String.Replace...does it even work? Pin
FocusedWolf17-Apr-05 16:35
FocusedWolf17-Apr-05 16:35 
GeneralGetting a DataSet of selected rows in a DataGrid Pin
Member 141845415-Apr-05 10:47
Member 141845415-Apr-05 10:47 
GeneralRe: Getting a DataSet of selected rows in a DataGrid Pin
Member 141845425-Apr-05 6:13
Member 141845425-Apr-05 6:13 
GeneralListView and selectedindex changed event Pin
code_wiz15-Apr-05 10:30
code_wiz15-Apr-05 10:30 
GeneralRe: ListView and selectedindex changed event Pin
afinnell15-Apr-05 11:36
afinnell15-Apr-05 11:36 
It might seem logical that you could derive from the control and dispatch a pre notification event, but that might not work because the control just wraps the Win32 API. So your best bet is to keep a previousSelectedIndex around. When your SelectedIndexChanged delegate is invoked you can do what you need to do, then store the previousSelectedIndex at that time. The next time your delegate is invoked the previousSelectedIndex will be the previous index.

-
Drew
GeneralCommunication with controls between classes Pin
DJNokturnal15-Apr-05 10:11
DJNokturnal15-Apr-05 10:11 
GeneralRe: Communication with controls between classes Pin
Nicholas Cardi15-Apr-05 13:34
Nicholas Cardi15-Apr-05 13:34 
GeneralRe: Communication with controls between classes Pin
DJNokturnal15-Apr-05 13:54
DJNokturnal15-Apr-05 13:54 
GeneralRe: Communication with controls between classes Pin
DJNokturnal18-Apr-05 5:40
DJNokturnal18-Apr-05 5:40 
GeneralA list of pairs (string, int) + sorting Pin
domo_15-Apr-05 10:00
domo_15-Apr-05 10:00 
GeneralRe: A list of pairs (string, int) + sorting Pin
afinnell15-Apr-05 11:50
afinnell15-Apr-05 11:50 
GeneralRe: A list of pairs (string, int) + sorting Pin
Nicholas Cardi15-Apr-05 12:15
Nicholas Cardi15-Apr-05 12:15 
GeneralRe: A list of pairs (string, int) + sorting Pin
leppie15-Apr-05 21:24
leppie15-Apr-05 21:24 
GeneralEmbedded User Control Pin
Larsenal15-Apr-05 8:24
Larsenal15-Apr-05 8:24 
GeneralRe: Embedded User Control Pin
Nicholas Cardi15-Apr-05 12:17
Nicholas Cardi15-Apr-05 12:17 
GeneralWindow Service Startup Mode Pin
Hercules0115-Apr-05 7:46
Hercules0115-Apr-05 7:46 
GeneralRe: Window Service Startup Mode Pin
DafeNilesh27-Jan-09 8:10
DafeNilesh27-Jan-09 8:10 
Generalneed help opeing projects Pin
microuser_200015-Apr-05 6:56
microuser_200015-Apr-05 6:56 
GeneralRe: need help opeing projects Pin
Judah Gabriel Himango15-Apr-05 7:00
sponsorJudah Gabriel Himango15-Apr-05 7:00 
GeneralCan't delete BMP file in C# Win App Pin
Khang Nguyen15-Apr-05 6:38
Khang Nguyen15-Apr-05 6:38 
GeneralRe: Can't delete BMP file in C# Win App Pin
Dave Kreskowiak15-Apr-05 7:42
mveDave Kreskowiak15-Apr-05 7:42 
GeneralRe: Can't delete BMP file in C# Win App Pin
Khang Nguyen15-Apr-05 7:50
Khang Nguyen15-Apr-05 7:50 

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.