Click here to Skip to main content
15,921,548 members
Home / Discussions / C#
   

C#

 
GeneralRe: Moving files programatically Pin
naglbitur6-Apr-06 5:09
naglbitur6-Apr-06 5:09 
GeneralRe: Moving files programatically Pin
Judah Gabriel Himango6-Apr-06 5:16
sponsorJudah Gabriel Himango6-Apr-06 5:16 
QuestionDirectory listing Pin
wistiti56-Apr-06 3:51
wistiti56-Apr-06 3:51 
AnswerRe: Directory listing Pin
Judah Gabriel Himango6-Apr-06 4:37
sponsorJudah Gabriel Himango6-Apr-06 4:37 
QuestionTreeView dilema. Please Help! Pin
zaboboa6-Apr-06 3:43
zaboboa6-Apr-06 3:43 
AnswerRe: TreeView dilema. Please Help! Pin
Judah Gabriel Himango6-Apr-06 4:46
sponsorJudah Gabriel Himango6-Apr-06 4:46 
GeneralRe: TreeView dilema. Please Help! Pin
zaboboa6-Apr-06 5:22
zaboboa6-Apr-06 5:22 
GeneralRe: TreeView dilema. Please Help! Pin
Judah Gabriel Himango6-Apr-06 5:32
sponsorJudah Gabriel Himango6-Apr-06 5:32 
There is another way, but it requires more memory allocation and more CPU processing on the client end:

When you read data back from the table, insert it into a System.Collections.Generic.SortedList, where the sorted list's keys are the sort order integers. From there, you should be able to iterate through the sorted list and insert a tree node at each index, as the iterating through the sorted list will be ordered in ascending order based on the sort order (i.e. 0, 1, 2, etc.)

But I would recommend you simply do an ORDERBY on your table to get the results back in the correct order to begin with. Easier that way and less overhead.

Tech, life, family, faith: Give me a visit.
I'm currently blogging about: How 'bout a little guitar now?
The apostle Paul, modernly speaking: Epistles of Paul

Judah Himango


QuestionProgramming windows form in .NET Pin
bluehai6-Apr-06 3:26
bluehai6-Apr-06 3:26 
AnswerRe: Programming windows form in .NET Pin
scoroop6-Apr-06 3:43
scoroop6-Apr-06 3:43 
AnswerRe: Programming windows form in .NET Pin
spif20016-Apr-06 4:17
spif20016-Apr-06 4:17 
GeneralRe: Programming windows form in .NET Pin
bluehai6-Apr-06 4:50
bluehai6-Apr-06 4:50 
GeneralRe: Programming windows form in .NET Pin
Judah Gabriel Himango6-Apr-06 5:01
sponsorJudah Gabriel Himango6-Apr-06 5:01 
GeneralRe: Programming windows form in .NET Pin
bluehai6-Apr-06 5:06
bluehai6-Apr-06 5:06 
GeneralRe: Programming windows form in .NET Pin
Judah Gabriel Himango6-Apr-06 5:09
sponsorJudah Gabriel Himango6-Apr-06 5:09 
QuestionUsing win32 LIB in C# Pin
t4ure4n6-Apr-06 3:03
t4ure4n6-Apr-06 3:03 
AnswerRe: Using win32 LIB in C# Pin
Andy Moore6-Apr-06 3:09
Andy Moore6-Apr-06 3:09 
QuestionRe: Using win32 LIB in C# Pin
t4ure4n7-Apr-06 0:19
t4ure4n7-Apr-06 0:19 
AnswerRe: Using win32 LIB in C# Pin
Andy Moore7-Apr-06 3:15
Andy Moore7-Apr-06 3:15 
Question[Message Deleted] Pin
t4ure4n6-Apr-06 2:42
t4ure4n6-Apr-06 2:42 
AnswerRe: .C# and standard C library Pin
toxcct6-Apr-06 2:58
toxcct6-Apr-06 2:58 
AnswerRe: .C# and standard C library Pin
Stefan Troschuetz6-Apr-06 3:00
Stefan Troschuetz6-Apr-06 3:00 
QuestionmaskedTextBox Format Pin
mostafa_h6-Apr-06 2:26
mostafa_h6-Apr-06 2:26 
AnswerRe: maskedTextBox Format Pin
scoroop6-Apr-06 3:46
scoroop6-Apr-06 3:46 
GeneralRe: maskedTextBox Format Pin
mostafa_h6-Apr-06 4:43
mostafa_h6-Apr-06 4:43 

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.