Click here to Skip to main content
15,895,142 members
Home / Discussions / C#
   

C#

 
AnswerRe: reading a file in C# Pin
stancrm1-May-06 23:21
stancrm1-May-06 23:21 
QuestionDocument Properties Pin
smarttom991-May-06 17:16
smarttom991-May-06 17:16 
QuestionRecommendation Pin
John L. DeVito1-May-06 15:05
professionalJohn L. DeVito1-May-06 15:05 
AnswerRe: Recommendation Pin
Michael A. Barnhart1-May-06 15:17
Michael A. Barnhart1-May-06 15:17 
AnswerRe: Recommendation Pin
Al Ortega1-May-06 15:56
Al Ortega1-May-06 15:56 
AnswerRe: Recommendation Pin
Joe Woodbury1-May-06 18:14
professionalJoe Woodbury1-May-06 18:14 
QuestionChanging Order of Items in a Bound ListBox Pin
myNameIsRon1-May-06 12:25
myNameIsRon1-May-06 12:25 
AnswerRe: Changing Order of Items in a Bound ListBox Pin
Josh Smith2-May-06 1:30
Josh Smith2-May-06 1:30 
myNameIsRon wrote:
Or, should I be adding a new column like "SortOrder" and populating this with the ListBox's index numbering? I guess this column (for all rows) would have to be updated every time an item is moved or deleted in the ListBox(DataTable).


That sounds like the way to go. Since the list is bound, you can't really mess around with the order that the items appear, unless you change the sort order. Also, when storing rows in the DB you should not depend on the physical order of the rows to preserve the sort order. Keeping that information in a separate column is the best way to keep track it.

Josh

-- modified at 7:30 Tuesday 2nd May, 2006
GeneralRe: Changing Order of Items in a Bound ListBox Pin
myNameIsRon2-May-06 16:05
myNameIsRon2-May-06 16:05 
QuestionData Grid - Setting Current Column and arrow key capture Pin
Michael A. Barnhart1-May-06 12:15
Michael A. Barnhart1-May-06 12:15 
QuestionDLL question Pin
Tom Wright1-May-06 12:12
Tom Wright1-May-06 12:12 
AnswerRe: DLL question Pin
Robin Panther1-May-06 13:07
Robin Panther1-May-06 13:07 
QuestionPassportIdentity.Compress - ?? Pin
BlackDice1-May-06 11:23
BlackDice1-May-06 11:23 
GeneralRe: PassportIdentity.Compress - ?? Pin
Office Lineman1-May-06 13:53
Office Lineman1-May-06 13:53 
GeneralRe: PassportIdentity.Compress - ?? Pin
BlackDice2-May-06 5:28
BlackDice2-May-06 5:28 
QuestionEnumerator question Pin
jbricker771-May-06 9:28
jbricker771-May-06 9:28 
AnswerRe: Enumerator question Pin
Josh Smith1-May-06 9:32
Josh Smith1-May-06 9:32 
GeneralRe: Enumerator question Pin
jbricker772-May-06 2:48
jbricker772-May-06 2:48 
AnswerRe: Enumerator question Pin
Robin Panther1-May-06 12:57
Robin Panther1-May-06 12:57 
GeneralRe: Enumerator question Pin
jbricker772-May-06 3:22
jbricker772-May-06 3:22 
AnswerRe: Enumerator question Pin
jbricker772-May-06 3:37
jbricker772-May-06 3:37 
AnswerRe: Enumerator question Pin
jbricker772-May-06 8:46
jbricker772-May-06 8:46 
QuestionPainting an ActiveX Control to an Image Pin
kingphotis1-May-06 8:41
kingphotis1-May-06 8:41 
AnswerRe: Painting an ActiveX Control to an Image Pin
Judah Gabriel Himango1-May-06 9:34
sponsorJudah Gabriel Himango1-May-06 9:34 
GeneralRe: Painting an ActiveX Control to an Image Pin
kingphotis1-May-06 9:42
kingphotis1-May-06 9:42 

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.