Click here to Skip to main content
15,906,097 members
Home / Discussions / C#
   

C#

 
GeneralDatabase access error Pin
StephenMcAllister15-Oct-04 16:11
StephenMcAllister15-Oct-04 16:11 
GeneralRe: Database access error Pin
Carl Mercier15-Oct-04 17:14
Carl Mercier15-Oct-04 17:14 
GeneralRe: Database access error Pin
Alex Korchemniy16-Oct-04 10:13
Alex Korchemniy16-Oct-04 10:13 
QuestionC# interop with type System.__ComObject? Pin
vista2715-Oct-04 15:01
vista2715-Oct-04 15:01 
AnswerRe: C# interop with type System.__ComObject? Pin
Heath Stewart15-Oct-04 15:50
protectorHeath Stewart15-Oct-04 15:50 
GeneralPosting a File on a Form Pin
Member 138504915-Oct-04 11:27
Member 138504915-Oct-04 11:27 
GeneralRe: Posting a File on a Form Pin
Alvaro Mendez15-Oct-04 11:41
Alvaro Mendez15-Oct-04 11:41 
GeneralRe: Posting a File on a Form Pin
Member 138504915-Oct-04 15:33
Member 138504915-Oct-04 15:33 
GeneralRe: Posting a File on a Form Pin
Alvaro Mendez15-Oct-04 21:27
Alvaro Mendez15-Oct-04 21:27 
General.NET Remoting Reference Pin
Wender Oliveira15-Oct-04 9:45
Wender Oliveira15-Oct-04 9:45 
GeneralRe: .NET Remoting Reference Pin
Alex Korchemniy15-Oct-04 10:10
Alex Korchemniy15-Oct-04 10:10 
GeneralRe: .NET Remoting Reference Pin
Wender Oliveira15-Oct-04 10:15
Wender Oliveira15-Oct-04 10:15 
GeneralRe: .NET Remoting Reference Pin
Alex Korchemniy15-Oct-04 10:20
Alex Korchemniy15-Oct-04 10:20 
GeneralRe: .NET Remoting Reference Pin
Wender Oliveira15-Oct-04 10:24
Wender Oliveira15-Oct-04 10:24 
GeneralRe: .NET Remoting Reference Pin
Alex Korchemniy15-Oct-04 10:29
Alex Korchemniy15-Oct-04 10:29 
GeneralChange the caret color in a textbox Pin
ee9903515-Oct-04 7:30
ee9903515-Oct-04 7:30 
GeneralRe: Change the caret color in a textbox Pin
Alex Korchemniy15-Oct-04 9:47
Alex Korchemniy15-Oct-04 9:47 
GeneralRe: Change the caret color in a textbox Pin
Carl Mercier15-Oct-04 17:13
Carl Mercier15-Oct-04 17:13 
Generalslow listview refresh Pin
DF_Bandit15-Oct-04 6:49
DF_Bandit15-Oct-04 6:49 
GeneralRe: slow listview refresh Pin
Heath Stewart15-Oct-04 7:00
protectorHeath Stewart15-Oct-04 7:00 
GeneralRe: slow listview refresh Pin
DF_Bandit15-Oct-04 7:10
DF_Bandit15-Oct-04 7:10 
GeneralRe: slow listview refresh Pin
Heath Stewart15-Oct-04 8:44
protectorHeath Stewart15-Oct-04 8:44 
You could also get a pretty good gain if you fetch all records first (say, into a DataSet) and then build your list. This really depends on your wire speed and format, though (whether or not you'll see any gains).

One other thing is to make sure that your ListView doesn't specify a sort already if you're going to sort it later a la SortList. Do one or the other, but not both. Sorting the list after is most often faster when you have a large number of items.

Is the code you use for the first and future operations exactly the same (with the call to Clear), i.e. you're using a DataReader to fetch the rows, etc.?

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralRe: slow listview refresh Pin
DF_Bandit15-Oct-04 9:39
DF_Bandit15-Oct-04 9:39 
GeneralRe: slow listview refresh Pin
Heath Stewart15-Oct-04 15:42
protectorHeath Stewart15-Oct-04 15:42 
GeneralRe: slow listview refresh Pin
afinnell18-Oct-04 6:17
afinnell18-Oct-04 6:17 

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.