Click here to Skip to main content
15,887,135 members
Home / Discussions / C#
   

C#

 
AnswerRe: hello friend :) Pin
Pete O'Hanlon11-Dec-12 8:22
mvePete O'Hanlon11-Dec-12 8:22 
GeneralRe: hello friend :) Pin
youshy11-Dec-12 9:12
youshy11-Dec-12 9:12 
GeneralMessage Removed Pin
12-Dec-12 2:50
professionalN_tro_P12-Dec-12 2:50 
GeneralRe: hello friend :) Pin
Pete O'Hanlon12-Dec-12 2:53
mvePete O'Hanlon12-Dec-12 2:53 
QuestionBest way to do this? Pin
SledgeHammer0111-Dec-12 4:55
SledgeHammer0111-Dec-12 4:55 
AnswerRe: Best way to do this? Pin
Gerry Schmitz11-Dec-12 12:28
mveGerry Schmitz11-Dec-12 12:28 
GeneralRe: Best way to do this? Pin
SledgeHammer0111-Dec-12 13:21
SledgeHammer0111-Dec-12 13:21 
GeneralRe: Best way to do this? Pin
Gerry Schmitz11-Dec-12 14:05
mveGerry Schmitz11-Dec-12 14:05 
I tried to emphasize that Collection (1) had the "original" objects; i.e. the first and only "instances".

The item sources for views (2) and (3) contain "references" to the objects in (1); so, there is no "duplication" of objects; e.g.

object o1 = new object();
object o2 = o1;
object o3 = o1;

As illustrated above, there is only one object "instance"; 02 and 03 are "references" to the original object (much as I'm suggesting the way the views should operate); with collection (1) driving the changes to the views' items collections via OnCollectionChanged.

If you are saying, you don't want to maintain "additional references" that is another matter; but that is not the same as "copying" (i.e. "cloning") objects.

(And anytime there is a List control bound to any collection, there is an implicit loading of "references" into the control from the data source).

In any event, due to the hierarchical nature of the Tree View versus a "flat" list it is pretty hard to come up with a "single" data source that can handle both at the same time.
GeneralRe: Best way to do this? Pin
SledgeHammer0111-Dec-12 14:25
SledgeHammer0111-Dec-12 14:25 
Questiondevelop code project functionality(view forums/questions) in codeproject like steps View Pin
Firoz(Pappu)11-Dec-12 3:40
Firoz(Pappu)11-Dec-12 3:40 
AnswerRe: develop code project functionality(view forums/questions) in codeproject like steps View Pin
Richard MacCutchan11-Dec-12 5:00
mveRichard MacCutchan11-Dec-12 5:00 
GeneralRe: develop code project functionality(view forums/questions) in codeproject like steps View Pin
Firoz(Pappu)11-Dec-12 5:37
Firoz(Pappu)11-Dec-12 5:37 
GeneralRe: develop code project functionality(view forums/questions) in codeproject like steps View Pin
Pete O'Hanlon11-Dec-12 6:01
mvePete O'Hanlon11-Dec-12 6:01 
GeneralRe: develop code project functionality(view forums/questions) in codeproject like steps View Pin
Firoz(Pappu)11-Dec-12 20:30
Firoz(Pappu)11-Dec-12 20:30 
GeneralRe: develop code project functionality(view forums/questions) in codeproject like steps View Pin
Pete O'Hanlon11-Dec-12 20:37
mvePete O'Hanlon11-Dec-12 20:37 
AnswerRe: develop code project functionality(view forums/questions) in codeproject like steps View Pin
Jay Nardev12-Dec-12 21:43
Jay Nardev12-Dec-12 21:43 
GeneralRe: develop code project functionality(view forums/questions) in codeproject like steps View Pin
Firoz(Pappu)12-Dec-12 22:17
Firoz(Pappu)12-Dec-12 22:17 
QuestionC# javascript communication Pin
tashee11-Dec-12 2:12
tashee11-Dec-12 2:12 
AnswerRe: C# javascript communication Pin
V.11-Dec-12 3:40
professionalV.11-Dec-12 3:40 
QuestionWCF Services in a multi threaded application results in Oracle Connection request Timed out error Pin
rajaron11-Dec-12 0:16
rajaron11-Dec-12 0:16 
Questionimage from access database in c# Pin
kojoam110-Dec-12 4:10
kojoam110-Dec-12 4:10 
QuestionRe: image from access database in c# Pin
Richard MacCutchan10-Dec-12 21:29
mveRichard MacCutchan10-Dec-12 21:29 
AnswerRe: image from access database in c# Pin
Pete O'Hanlon10-Dec-12 22:15
mvePete O'Hanlon10-Dec-12 22:15 
GeneralRe: image from access database in c# Pin
Richard MacCutchan10-Dec-12 22:40
mveRichard MacCutchan10-Dec-12 22:40 
AnswerRe: image from access database in c# Pin
Pete O'Hanlon11-Dec-12 0:08
mvePete O'Hanlon11-Dec-12 0:08 

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.