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

C#

 
GeneralRe: Me, again... Confused Again... Pin
Roger Wright8-Dec-09 20:17
professionalRoger Wright8-Dec-09 20:17 
GeneralRe: Me, again... Confused Again... Pin
N a v a n e e t h8-Dec-09 21:09
N a v a n e e t h8-Dec-09 21:09 
AnswerRe: Me, again... Confused Again... Pin
N a v a n e e t h8-Dec-09 21:05
N a v a n e e t h8-Dec-09 21:05 
Questionhow to i delete the file Pin
Joe Rozario8-Dec-09 17:08
Joe Rozario8-Dec-09 17:08 
AnswerRe: how to i delete the file Pin
SeMartens8-Dec-09 20:52
SeMartens8-Dec-09 20:52 
GeneralRe: how to i delete the file Pin
Joe Rozario8-Dec-09 21:36
Joe Rozario8-Dec-09 21:36 
GeneralRe: how to i delete the file Pin
SeMartens8-Dec-09 21:46
SeMartens8-Dec-09 21:46 
Questionpopulate treeview from database Pin
kruegs358-Dec-09 13:28
kruegs358-Dec-09 13:28 
I have found two ways to populate a treeview from a database. The first sets up a new class for each hierarchal level. Each class then contains a list of the associated child nodes. The database is queried once, then the records are dumped into the instances of the classes. This is the method used here:

Populating a TreeView Control from the Database[^]

The second way I found of populating the treeview is to have a number of methods that query the database. Each query includes filters the data by the value of the parent node, such as here:

http://www.dotnetspider.com/resources/28676-Populate-TreeView-From-DataBase-Using-Recursive.aspx[^]

My question is which way is preferable? I have a large about of data that I want work with, say, a hundred parent nodes that will drill down eight to ten hierarchal levels. It seems creating instances of a class for each record would use a lot of memory, but the second option has a lot of back-and-forth from the database. The data is coming from an oracle database, if that matters any.
AnswerRe: populate treeview from database Pin
Richard Blythe8-Dec-09 17:50
Richard Blythe8-Dec-09 17:50 
GeneralRe: populate treeview from database Pin
kruegs359-Dec-09 3:10
kruegs359-Dec-09 3:10 
QuestionReportViewer 2005 C# Printing issue [modified] Pin
.NET4Ever8-Dec-09 12:26
.NET4Ever8-Dec-09 12:26 
QuestionTo be liberal or conservative with virtual methods... Pin
CaptainSeeSharp8-Dec-09 10:13
CaptainSeeSharp8-Dec-09 10:13 
AnswerRe: To be liberal or conservative with virtual methods... Pin
PIEBALDconsult8-Dec-09 10:31
mvePIEBALDconsult8-Dec-09 10:31 
GeneralRe: To be liberal or conservative with virtual methods... Pin
CaptainSeeSharp8-Dec-09 10:36
CaptainSeeSharp8-Dec-09 10:36 
GeneralRe: To be liberal or conservative with virtual methods... Pin
PIEBALDconsult8-Dec-09 10:39
mvePIEBALDconsult8-Dec-09 10:39 
GeneralRe: To be liberal or conservative with virtual methods... Pin
harold aptroot8-Dec-09 10:41
harold aptroot8-Dec-09 10:41 
GeneralRe: To be liberal or conservative with virtual methods... Pin
PIEBALDconsult8-Dec-09 10:47
mvePIEBALDconsult8-Dec-09 10:47 
GeneralRe: To be liberal or conservative with virtual methods... Pin
harold aptroot8-Dec-09 10:55
harold aptroot8-Dec-09 10:55 
GeneralRe: To be liberal or conservative with virtual methods... Pin
PIEBALDconsult8-Dec-09 10:57
mvePIEBALDconsult8-Dec-09 10:57 
GeneralRe: To be liberal or conservative with virtual methods... Pin
Pete O'Hanlon8-Dec-09 11:10
mvePete O'Hanlon8-Dec-09 11:10 
GeneralRe: To be liberal or conservative with virtual methods... Pin
PIEBALDconsult8-Dec-09 13:33
mvePIEBALDconsult8-Dec-09 13:33 
AnswerRe: To be liberal or conservative with virtual methods... Pin
Jimmanuel8-Dec-09 10:58
Jimmanuel8-Dec-09 10:58 
GeneralRe: To be liberal or conservative with virtual methods... Pin
PIEBALDconsult8-Dec-09 11:11
mvePIEBALDconsult8-Dec-09 11:11 
GeneralRe: To be liberal or conservative with virtual methods... Pin
Jimmanuel8-Dec-09 11:21
Jimmanuel8-Dec-09 11:21 
GeneralRe: To be liberal or conservative with virtual methods... Pin
PIEBALDconsult8-Dec-09 11:52
mvePIEBALDconsult8-Dec-09 11:52 

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.