Click here to Skip to main content
15,920,217 members
Home / Discussions / C#
   

C#

 
SuggestionRe: Sorting a generic list ? Pin
Richard MacCutchan8-Sep-14 20:42
mveRichard MacCutchan8-Sep-14 20:42 
QuestionStumped - How do I code this loop... Pin
Andy_L_J6-Sep-14 18:00
Andy_L_J6-Sep-14 18:00 
AnswerRe: Stumped - How do I code this loop... Pin
Garth J Lancaster6-Sep-14 19:08
professionalGarth J Lancaster6-Sep-14 19:08 
AnswerRe: Stumped - How do I code this loop... Pin
CPallini6-Sep-14 19:25
mveCPallini6-Sep-14 19:25 
GeneralRe: Stumped - How do I code this loop... Pin
Andy_L_J6-Sep-14 20:04
Andy_L_J6-Sep-14 20:04 
GeneralRe: Stumped - How do I code this loop... Pin
CPallini6-Sep-14 20:22
mveCPallini6-Sep-14 20:22 
AnswerRe: Stumped - How do I code this loop... Pin
Andy_L_J13-Sep-14 11:02
Andy_L_J13-Sep-14 11:02 
GeneralRe: Stumped - How do I code this loop... Pin
CPallini13-Sep-14 12:37
mveCPallini13-Sep-14 12:37 
GeneralRe: Stumped - How do I code this loop... Pin
BillWoodruff7-Sep-14 23:30
professionalBillWoodruff7-Sep-14 23:30 
GeneralRe: Stumped - How do I code this loop... Pin
CPallini8-Sep-14 0:32
mveCPallini8-Sep-14 0:32 
GeneralRe: Stumped - How do I code this loop... Pin
BillWoodruff8-Sep-14 23:40
professionalBillWoodruff8-Sep-14 23:40 
GeneralRe: Stumped - How do I code this loop... Pin
Pete O'Hanlon8-Sep-14 23:54
mvePete O'Hanlon8-Sep-14 23:54 
GeneralRe: Stumped - How do I code this loop... Pin
CPallini9-Sep-14 2:55
mveCPallini9-Sep-14 2:55 
GeneralRe: Stumped - How do I code this loop... Pin
BillWoodruff9-Sep-14 20:05
professionalBillWoodruff9-Sep-14 20:05 
GeneralRe: Stumped - How do I code this loop... Pin
Richard Deeming9-Sep-14 1:49
mveRichard Deeming9-Sep-14 1:49 
GeneralRe: Stumped - How do I code this loop... Pin
CPallini9-Sep-14 2:56
mveCPallini9-Sep-14 2:56 
GeneralRe: Stumped - How do I code this loop... Pin
BillWoodruff9-Sep-14 20:06
professionalBillWoodruff9-Sep-14 20:06 
GeneralRC4 Pin
Member 110632796-Sep-14 3:29
Member 110632796-Sep-14 3:29 
GeneralRe: RC$ Pin
OriginalGriff6-Sep-14 3:52
mveOriginalGriff6-Sep-14 3:52 
GeneralRe: RC4 Pin
logicalweb6-Sep-14 17:29
logicalweb6-Sep-14 17:29 
GeneralRe: RC4 Pin
Bernhard Hiller7-Sep-14 21:54
Bernhard Hiller7-Sep-14 21:54 
QuestionGood article Pin
logicalweb6-Sep-14 0:11
logicalweb6-Sep-14 0:11 
AnswerRe: How it is different from below approach, find simplified version is below link Pin
Richard MacCutchan6-Sep-14 0:15
mveRichard MacCutchan6-Sep-14 0:15 
AnswerRe: Good article Pin
OriginalGriff6-Sep-14 0:49
mveOriginalGriff6-Sep-14 0:49 
QuestionGrouping the list in ListCollectionView in a WinRT XAML / C# app Pin
BadshaRulez5-Sep-14 19:22
BadshaRulez5-Sep-14 19:22 
I am working on a Windows Phone 8.1 app in XAML / C# and I am using the ListCollectionView[^] class to allow the list to be filtered. The problem is, I need to group the list, which that class doesn't support. I tried using LINQ, but it gave a it kept giving me an object initialization error at the ICompare method in ListCollectionView.cs. I also used the GroupKeyList.cs class and used the following line to create a grouped list:
C#
MusicSource.Source = GroupKeyList.CreateGroupList(source, (Music sd) => { return sd.Artist; });
where MusicSource is a CollectionViewSource. Music.cs

However, it returns the same object initialization error at the same position. What am I doing wrong and how can I get the group to work (preferably with the GroupKeyList class)?

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.