Click here to Skip to main content
15,890,438 members
Home / Discussions / C#
   

C#

 
Question"Configuration system failed to initialize" Pin
AshwiniSH22-Apr-14 23:32
professionalAshwiniSH22-Apr-14 23:32 
AnswerRe: "Configuration system failed to initialize" Pin
Bernhard Hiller22-Apr-14 23:56
Bernhard Hiller22-Apr-14 23:56 
GeneralRe: "Configuration system failed to initialize" Pin
AshwiniSH24-Apr-14 21:51
professionalAshwiniSH24-Apr-14 21:51 
Questionhow to use events using Base class Pin
Member 1034709222-Apr-14 15:44
Member 1034709222-Apr-14 15:44 
AnswerRe: how to use events using Base class Pin
Eddy Vluggen23-Apr-14 0:32
professionalEddy Vluggen23-Apr-14 0:32 
QuestionRe: how to use events using Base class Pin
Eddy Vluggen23-Apr-14 5:11
professionalEddy Vluggen23-Apr-14 5:11 
AnswerRe: how to use events using Base class Pin
Marco Bertschi23-Apr-14 5:40
protectorMarco Bertschi23-Apr-14 5:40 
QuestionRetaining index of an item Pin
Chris Copeland22-Apr-14 12:47
mveChris Copeland22-Apr-14 12:47 
I've been working on a project for the past week or so, and it's come to my attention that I need a method of being able to 'track' the index of an item within a collection.

A prime example of what I'm trying to achieve is the System.Windows.Forms.ListViewItem class, which retains an Index property which is always matched to the actual index within the collection of a System.Windows.Forms.ListView.

A method I've been trying is iterating through the collection any time an update ends and updating each item individually. However, I have noticed that this takes a ridiculously long time when we begin achieving millions of rows. Items are removed from the collection, but then after the update has finished, it has to iterate through the collection to synchronize the indices.

Other than using LINQ on the collection from the individual item, can anyone suggest a better way to maintain the index of the item within the list?
AnswerRe: Retaining index of an item Pin
Ravi Bhavnani22-Apr-14 19:24
professionalRavi Bhavnani22-Apr-14 19:24 
GeneralRe: Retaining index of an item Pin
Chris Copeland22-Apr-14 23:11
mveChris Copeland22-Apr-14 23:11 
GeneralRe: Retaining index of an item Pin
Eddy Vluggen23-Apr-14 0:30
professionalEddy Vluggen23-Apr-14 0:30 
GeneralRe: Retaining index of an item Pin
Chris Copeland23-Apr-14 1:55
mveChris Copeland23-Apr-14 1:55 
GeneralRe: Retaining index of an item Pin
Ravi Bhavnani23-Apr-14 2:48
professionalRavi Bhavnani23-Apr-14 2:48 
AnswerRe: Retaining index of an item Pin
Marco Bertschi22-Apr-14 22:29
protectorMarco Bertschi22-Apr-14 22:29 
Questionwhich Data Grid to use?? Pin
Member 1076709622-Apr-14 6:50
Member 1076709622-Apr-14 6:50 
AnswerRe: which Data Grid to use?? Pin
OriginalGriff22-Apr-14 8:27
mveOriginalGriff22-Apr-14 8:27 
GeneralRe: which Data Grid to use?? Pin
Member 1076709622-Apr-14 21:45
Member 1076709622-Apr-14 21:45 
AnswerRe: which Data Grid to use?? Pin
Rahul VB22-Apr-14 9:02
professionalRahul VB22-Apr-14 9:02 
AnswerRe: which Data Grid to use?? Pin
Wes Aday22-Apr-14 13:19
professionalWes Aday22-Apr-14 13:19 
GeneralRe: which Data Grid to use?? Pin
Mycroft Holmes22-Apr-14 14:06
professionalMycroft Holmes22-Apr-14 14:06 
GeneralRe: which Data Grid to use?? Pin
Member 1076709622-Apr-14 14:39
Member 1076709622-Apr-14 14:39 
AnswerRe: which Data Grid to use?? Pin
thatraja22-Apr-14 22:16
professionalthatraja22-Apr-14 22:16 
Questionmicrosoft.office.interop.word compatibility Pin
Member 980950622-Apr-14 4:42
Member 980950622-Apr-14 4:42 
AnswerRe: microsoft.office.interop.word compatibility Pin
Eddy Vluggen22-Apr-14 6:51
professionalEddy Vluggen22-Apr-14 6:51 
QuestionLAN Pin
Member 1068496822-Apr-14 0:53
Member 1068496822-Apr-14 0:53 

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.