Click here to Skip to main content
16,016,204 members
Home / Discussions / C#
   

C#

 
GeneralRe: Annoying ListBox problem Pin
Luc Pattyn22-Oct-10 5:19
sitebuilderLuc Pattyn22-Oct-10 5:19 
GeneralRe: Annoying ListBox problem Pin
Henry Minute22-Oct-10 5:30
Henry Minute22-Oct-10 5:30 
GeneralRe: Annoying ListBox problem Pin
Luc Pattyn22-Oct-10 5:59
sitebuilderLuc Pattyn22-Oct-10 5:59 
GeneralRe: Annoying ListBox problem Pin
Henry Minute22-Oct-10 6:06
Henry Minute22-Oct-10 6:06 
GeneralRe: Annoying ListBox problem Pin
Henry Minute22-Oct-10 6:48
Henry Minute22-Oct-10 6:48 
GeneralRe: Annoying ListBox problem Pin
Henry Minute22-Oct-10 7:08
Henry Minute22-Oct-10 7:08 
GeneralRe: Annoying ListBox problem Pin
Luc Pattyn22-Oct-10 7:33
sitebuilderLuc Pattyn22-Oct-10 7:33 
GeneralRe: Annoying ListBox problem Pin
Henry Minute22-Oct-10 7:41
Henry Minute22-Oct-10 7:41 
Without the RefreshDataBoundControls(), the new item is not added to the LB.Items therefore it cannot be selected and the last line (of your snippet) throws an ArgumentOutOfRangeException

Agree about the Update() part. I didn't have that originally, added in an attempt to 'force' a redraw to get rid of the persistent highlight(s), and forgot to remove it.
Henry Minute

Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”

GeneralRe: Annoying ListBox problem Pin
Luc Pattyn22-Oct-10 14:36
sitebuilderLuc Pattyn22-Oct-10 14:36 
GeneralRe: Annoying ListBox problem Pin
Henry Minute22-Oct-10 5:31
Henry Minute22-Oct-10 5:31 
QuestionCrystal Report Formula needed Pin
Nikhil Bhivgade22-Oct-10 1:29
professionalNikhil Bhivgade22-Oct-10 1:29 
AnswerRe: Crystal Report Formula needed [modified] Pin
Sivaraman Dhamodharan22-Oct-10 2:51
Sivaraman Dhamodharan22-Oct-10 2:51 
GeneralRe: Crystal Report Formula needed Pin
Nikhil Bhivgade22-Oct-10 21:35
professionalNikhil Bhivgade22-Oct-10 21:35 
QuestionHost WPF application on WEB Pin
VisualLive22-Oct-10 0:15
VisualLive22-Oct-10 0:15 
AnswerRe: Host WPF application on WEB Pin
Simon P Stevens22-Oct-10 1:13
Simon P Stevens22-Oct-10 1:13 
AnswerRe: Host WPF application on WEB Pin
#realJSOP22-Oct-10 1:41
professional#realJSOP22-Oct-10 1:41 
AnswerRe: Host WPF application on WEB Pin
Nish Nishant22-Oct-10 2:02
sitebuilderNish Nishant22-Oct-10 2:02 
GeneralRe: Host WPF application on WEB Pin
Abhinav S22-Oct-10 2:47
Abhinav S22-Oct-10 2:47 
GeneralRe: Host WPF application on WEB Pin
Nish Nishant22-Oct-10 4:15
sitebuilderNish Nishant22-Oct-10 4:15 
AnswerRe: Host WPF application on WEB Pin
Abhinav S22-Oct-10 2:46
Abhinav S22-Oct-10 2:46 
GeneralRe: Host WPF application on WEB Pin
VisualLive23-Oct-10 19:17
VisualLive23-Oct-10 19:17 
QuestionFind Label in Gridview Footer Row in javascript Pin
SatyaKeerthi1521-Oct-10 23:33
SatyaKeerthi1521-Oct-10 23:33 
AnswerRe: Find Label in Gridview Footer Row in javascript Pin
OriginalGriff22-Oct-10 1:10
mveOriginalGriff22-Oct-10 1:10 
AnswerRe: Find Label in Gridview Footer Row in javascript Pin
Abhinav S22-Oct-10 3:06
Abhinav S22-Oct-10 3:06 
QuestionPage refresh Pin
juman_achu21-Oct-10 23:15
juman_achu21-Oct-10 23: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.