Click here to Skip to main content
16,007,687 members
Home / Discussions / C#
   

C#

 
GeneralRe: Need Help - Game Menu programming. Pin
exhaulted24-Feb-05 2:32
exhaulted24-Feb-05 2:32 
GeneralInformation about a streamed file embedded in a WebPage (WindowsMediaPlayer ActiveX) Pin
rwelte24-Feb-05 0:30
rwelte24-Feb-05 0:30 
GeneralSorting DataGrid Pin
Maqsood Ahmed24-Feb-05 0:21
Maqsood Ahmed24-Feb-05 0:21 
GeneralRe: Sorting DataGrid Pin
turbochimp24-Feb-05 12:07
turbochimp24-Feb-05 12:07 
GeneralRe: Sorting DataGrid Pin
Maqsood Ahmed24-Feb-05 20:20
Maqsood Ahmed24-Feb-05 20:20 
GeneralRe: Sorting DataGrid Pin
turbochimp25-Feb-05 3:02
turbochimp25-Feb-05 3:02 
GeneralRe: Sorting DataGrid Pin
Maqsood Ahmed26-Feb-05 3:54
Maqsood Ahmed26-Feb-05 3:54 
GeneralRe: Sorting DataGrid Pin
turbochimp2-Mar-05 2:34
turbochimp2-Mar-05 2:34 
You can always display normalized data in a non-normalized way using SQL functions, string concatenation or by simple control placement. How you display data to the user should not dictate your data model. They seldom coincide.
In the example you provided, you would need three columns to hold price information unless you decided to either duplicate all row data for each price type, or move prices to a separate table. One price column in the same table would not cut it.
As far as "the actual problem", there isn't one. You're trying to use standard sort routines to sort data in a non-standard way; what's more, your data appears to be stored in a fashion that is not conducive to ever having meaningful reporting or display filtering options.
If you are completely devoted to storing your data in the manner you suggest, then I would advise investing some time learning how to implement the IComparable interface, and create your own collection class that's sortable. Please note that this option is less than optimal, to put it mildly.



The most exciting phrase to hear in science, the one that heralds the most discoveries, is not 'Eureka!' ('I found it!') but 'That's funny...’

GeneralShortcut targets Pin
exhaulted23-Feb-05 23:40
exhaulted23-Feb-05 23:40 
GeneralCustom toolbar in Excel Pin
sharathgowda23-Feb-05 22:07
sharathgowda23-Feb-05 22:07 
GeneralRe: Custom toolbar in Excel Pin
Esmo200024-Feb-05 4:09
Esmo200024-Feb-05 4:09 
GeneralHelp me step by step create a ebook reader Pin
Nguyễn Đình Quân23-Feb-05 21:35
Nguyễn Đình Quân23-Feb-05 21:35 
GeneralRe: Help me step by step create a ebook reader Pin
Colin Angus Mackay23-Feb-05 23:32
Colin Angus Mackay23-Feb-05 23:32 
GeneralRe: Help me step by step create a ebook reader Pin
Nguyễn Đình Quân24-Feb-05 17:34
Nguyễn Đình Quân24-Feb-05 17:34 
GeneralCustom shaped context menu with C# Pin
Member 143676023-Feb-05 21:16
Member 143676023-Feb-05 21:16 
Generalcoverting ushort to two Byte Pin
maheshfour23-Feb-05 20:37
maheshfour23-Feb-05 20:37 
GeneralRe: coverting ushort to two Byte Pin
Stefan Troschuetz23-Feb-05 21:16
Stefan Troschuetz23-Feb-05 21:16 
GeneralRe: coverting ushort to two Byte Pin
leppie23-Feb-05 21:17
leppie23-Feb-05 21:17 
GeneralRe: coverting ushort to two Byte Pin
exhaulted23-Feb-05 23:44
exhaulted23-Feb-05 23:44 
GeneralVSS Late Binding Pin
tlvranas23-Feb-05 20:30
tlvranas23-Feb-05 20:30 
Generalupload a directory Pin
Anonymous23-Feb-05 18:05
Anonymous23-Feb-05 18:05 
GeneralRe: upload a directory Pin
turbochimp24-Feb-05 12:22
turbochimp24-Feb-05 12:22 
Generalcustom form designer Pin
ppp00123-Feb-05 17:55
ppp00123-Feb-05 17:55 
GeneralHaving trouble binding Checked property of radio button Pin
Newbie_T23-Feb-05 16:57
Newbie_T23-Feb-05 16:57 
GeneralRe: Having trouble binding Checked property of radio button Pin
Kodanda Pani23-Feb-05 18:42
Kodanda Pani23-Feb-05 18: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.