Click here to Skip to main content
15,887,477 members
Home / Discussions / C#
   

C#

 
AnswerRe: DatagridView Multi Header Columns & Rows Pin
OriginalGriff22-Nov-16 21:36
mveOriginalGriff22-Nov-16 21:36 
AnswerRe: DatagridView Multi Header Columns & Rows Pin
Afzaal Ahmad Zeeshan23-Nov-16 0:41
professionalAfzaal Ahmad Zeeshan23-Nov-16 0:41 
QuestionHow to index dynamically created controls and their values? Pin
turbosupramk322-Nov-16 8:58
turbosupramk322-Nov-16 8:58 
AnswerRe: How to index dynamically created controls and their values? Pin
Richard MacCutchan22-Nov-16 10:48
mveRichard MacCutchan22-Nov-16 10:48 
QuestionAssigning Number To Strings Then Sort Pin
MadDashCoder21-Nov-16 19:46
MadDashCoder21-Nov-16 19:46 
AnswerRe: Assigning Number To Strings Then Sort Pin
Pete O'Hanlon21-Nov-16 20:34
mvePete O'Hanlon21-Nov-16 20:34 
GeneralRe: Assigning Number To Strings Then Sort Pin
MadDashCoder22-Nov-16 5:42
MadDashCoder22-Nov-16 5:42 
AnswerRe: Assigning Number To Strings Then Sort Pin
Afzaal Ahmad Zeeshan21-Nov-16 23:34
professionalAfzaal Ahmad Zeeshan21-Nov-16 23:34 
Another easy way to do this is using Dictionary<int, string>[^] type. This type will hold the weight assigned to vacation, as well as the name of it in string. Then you can easily sort them using their key.

You need to store both of values (name + weight given) to the dictionary, no additional type generation is required as the dictionary object is a generic type.

This[^] link has a wonderful example of what you are trying to achieve.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~

GeneralRe: Assigning Number To Strings Then Sort Pin
Daniel Pfeffer22-Nov-16 0:22
professionalDaniel Pfeffer22-Nov-16 0:22 
GeneralRe: Assigning Number To Strings Then Sort Pin
Afzaal Ahmad Zeeshan22-Nov-16 0:36
professionalAfzaal Ahmad Zeeshan22-Nov-16 0:36 
GeneralRe: Assigning Number To Strings Then Sort Pin
MadDashCoder22-Nov-16 5:23
MadDashCoder22-Nov-16 5:23 
GeneralRe: Assigning Number To Strings Then Sort Pin
Afzaal Ahmad Zeeshan22-Nov-16 5:32
professionalAfzaal Ahmad Zeeshan22-Nov-16 5:32 
AnswerRe: Assigning Number To Strings Then Sort Pin
Gerry Schmitz22-Nov-16 5:35
mveGerry Schmitz22-Nov-16 5:35 
QuestionHow to compress png, bitmap ,or cr2 image file using huffman and RLE with c# Pin
Rıza Berkay Ayçelebi21-Nov-16 7:25
Rıza Berkay Ayçelebi21-Nov-16 7:25 
AnswerRe: How to compress png, bitmap ,or cr2 image file using huffman and RLE with c# Pin
OriginalGriff21-Nov-16 8:09
mveOriginalGriff21-Nov-16 8:09 
GeneralRe: How to compress png, bitmap ,or cr2 image file using huffman and RLE with c# Pin
Rıza Berkay Ayçelebi21-Nov-16 8:44
Rıza Berkay Ayçelebi21-Nov-16 8:44 
GeneralRe: How to compress png, bitmap ,or cr2 image file using huffman and RLE with c# Pin
Dave Kreskowiak21-Nov-16 9:26
mveDave Kreskowiak21-Nov-16 9:26 
GeneralRe: How to compress png, bitmap ,or cr2 image file using huffman and RLE with c# Pin
Rıza Berkay Ayçelebi21-Nov-16 18:38
Rıza Berkay Ayçelebi21-Nov-16 18:38 
GeneralRe: How to compress png, bitmap ,or cr2 image file using huffman and RLE with c# Pin
Dave Kreskowiak22-Nov-16 2:32
mveDave Kreskowiak22-Nov-16 2:32 
GeneralRe: How to compress png, bitmap ,or cr2 image file using huffman and RLE with c# Pin
Pete O'Hanlon21-Nov-16 9:28
mvePete O'Hanlon21-Nov-16 9:28 
GeneralRe: How to compress png, bitmap ,or cr2 image file using huffman and RLE with c# Pin
Rıza Berkay Ayçelebi21-Nov-16 18:43
Rıza Berkay Ayçelebi21-Nov-16 18:43 
GeneralRe: How to compress png, bitmap ,or cr2 image file using huffman and RLE with c# Pin
Pete O'Hanlon21-Nov-16 19:42
mvePete O'Hanlon21-Nov-16 19:42 
GeneralRe: How to compress png, bitmap ,or cr2 image file using huffman and RLE with c# Pin
OriginalGriff21-Nov-16 21:35
mveOriginalGriff21-Nov-16 21:35 
GeneralRe: How to compress png, bitmap ,or cr2 image file using huffman and RLE with c# Pin
Rıza Berkay Ayçelebi21-Nov-16 23:19
Rıza Berkay Ayçelebi21-Nov-16 23:19 
GeneralRe: How to compress png, bitmap ,or cr2 image file using huffman and RLE with c# Pin
OriginalGriff21-Nov-16 23:24
mveOriginalGriff21-Nov-16 23:24 

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.