Click here to Skip to main content
15,892,674 members
Home / Discussions / C#
   

C#

 
QuestionSet Regional Settings for CE 5.0 Pin
Tyler453-Jan-07 2:02
Tyler453-Jan-07 2:02 
QuestionAccess Network through asp.net 2.0 application Pin
abhinish3-Jan-07 0:53
abhinish3-Jan-07 0:53 
AnswerRe: Access Network through asp.net 2.0 application Pin
Not Active3-Jan-07 2:09
mentorNot Active3-Jan-07 2:09 
QuestionDisplaying + (Plus) sign to node without adding child node Pin
s v joshi3-Jan-07 0:38
s v joshi3-Jan-07 0:38 
AnswerRe: Displaying + (Plus) sign to node without adding child node Pin
User 66583-Jan-07 0:45
User 66583-Jan-07 0:45 
AnswerRe: Displaying + (Plus) sign to node without adding child node [modified] Pin
Nader Elshehabi3-Jan-07 0:50
Nader Elshehabi3-Jan-07 0:50 
GeneralRe: Displaying + (Plus) sign to node without adding child node Pin
s v joshi3-Jan-07 1:41
s v joshi3-Jan-07 1:41 
GeneralRe: Displaying + (Plus) sign to node without adding child node Pin
Nader Elshehabi3-Jan-07 2:01
Nader Elshehabi3-Jan-07 2:01 
sandeepvilasjoshi wrote:
so after expanding it first i have to remove that first fake node

Not so. The BeforeExpand event happens before the parent node is expanded at all. So in the handler you remove your fake node bfore the parent node would ever expand. Thus no user will ever see your fake node. Removing it would be easy by one line in the handler.
e.Node.Nodes[0].Remove();

Also I made two more suggestions in my previous post that would give an alternate way of doing it.
sandeepvilasjoshi wrote:
i do not want to store that data in memory

Each tree node won't take more than few bytes long in memory. Most modern computers got memory of 256Mb or more. So if you want to go through all these trouble just to save 200-300 Kbs of memory -which is very trivial- you are absolutely wrong. The above method will make a major performance hit in your program -try it-. Unless you got a million or more nodes I wouldn't recommend your idea. After all it's still your choice. Try this, and that and profile -some sort of speed test- your application, then decide where to go.

RegardsRose | [Rose]

GeneralRe: Displaying + (Plus) sign to node without adding child node Pin
PIEBALDconsult3-Jan-07 3:42
mvePIEBALDconsult3-Jan-07 3:42 
QuestionHow to make a chart in C# Pin
phantanagu3-Jan-07 0:26
phantanagu3-Jan-07 0:26 
AnswerRe: How to make a chart in C# Pin
User 66583-Jan-07 0:29
User 66583-Jan-07 0:29 
AnswerRe: How to make a chart in C# Pin
Luc Pattyn3-Jan-07 5:03
sitebuilderLuc Pattyn3-Jan-07 5:03 
QuestionError Message Pin
morteza573-Jan-07 0:03
morteza573-Jan-07 0:03 
AnswerRe: Error Message Pin
User 66583-Jan-07 0:16
User 66583-Jan-07 0:16 
GeneralRe: Error Message Pin
morteza573-Jan-07 1:21
morteza573-Jan-07 1:21 
Questiongetting File path?? Pin
Venkatesh.P2-Jan-07 22:28
Venkatesh.P2-Jan-07 22:28 
AnswerRe: getting File path?? Pin
Bhupi Bhai2-Jan-07 22:39
Bhupi Bhai2-Jan-07 22:39 
GeneralRe: getting File path?? [modified] Pin
Venkatesh.P2-Jan-07 23:06
Venkatesh.P2-Jan-07 23:06 
AnswerRe: getting File path?? Pin
Nader Elshehabi3-Jan-07 1:13
Nader Elshehabi3-Jan-07 1:13 
GeneralRe: getting File path?? Pin
Venkatesh.P3-Jan-07 21:50
Venkatesh.P3-Jan-07 21:50 
GeneralRe: getting File path?? Pin
Nader Elshehabi3-Jan-07 22:35
Nader Elshehabi3-Jan-07 22:35 
QuestionProblem with reading INI Files, and a listview question. Pin
HydroIT2-Jan-07 22:14
HydroIT2-Jan-07 22:14 
AnswerRe: Problem with reading INI Files, and a listview question. Pin
CPallini2-Jan-07 23:13
mveCPallini2-Jan-07 23:13 
GeneralRe: Problem with reading INI Files, and a listview question. Pin
HydroIT3-Jan-07 0:20
HydroIT3-Jan-07 0:20 
GeneralRe: Problem with reading INI Files, and a listview question. Pin
CPallini3-Jan-07 0:38
mveCPallini3-Jan-07 0:38 

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.