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

C#

 
GeneralRe: Throttling web service calls on different threads Pin
Gareth H10-Sep-10 1:37
Gareth H10-Sep-10 1:37 
AnswerRe: Throttling web service calls on different threads Pin
Abhinav S9-Sep-10 17:30
Abhinav S9-Sep-10 17:30 
GeneralRe: Throttling web service calls on different threads Pin
Gareth H9-Sep-10 21:07
Gareth H9-Sep-10 21:07 
Questionsearch and save to SQL using LINQ in C# Pin
navidsoft9-Sep-10 6:07
professionalnavidsoft9-Sep-10 6:07 
AnswerRe: search and save to SQL using LINQ in C# Pin
Ian Shlasko9-Sep-10 10:42
Ian Shlasko9-Sep-10 10:42 
GeneralRe: search and save to SQL using LINQ in C# Pin
navidsoft9-Sep-10 21:21
professionalnavidsoft9-Sep-10 21:21 
GeneralRe: search and save to SQL using LINQ in C# Pin
Ian Shlasko10-Sep-10 1:43
Ian Shlasko10-Sep-10 1:43 
QuestionCasting ItemsControl.ItemsSource to Generic Collection Pin
Jammer9-Sep-10 5:11
Jammer9-Sep-10 5:11 
Hi All,

I'm stuck on this particular issue. I have a custom combobox that is to be used with various generic collections of different types. Inside this control it needs to automatically update a database table with new values and then add and select them to the underlying collection.

If I use the Items.Add() method it blows up with "Operation is not valid while ItemsSource is in use. Access and modify elements with ItemsControl.ItemsSource instead."

The problem I'm facing is how to cast the ItemsSource so that I can actually add the item and then set is as the selected item.

Any ideas?

TIA,

AnswerRe: Casting ItemsControl.ItemsSource to Generic Collection Pin
#realJSOP9-Sep-10 7:29
mve#realJSOP9-Sep-10 7:29 
AnswerRe: Casting ItemsControl.ItemsSource to Generic Collection Pin
Ian Shlasko9-Sep-10 10:51
Ian Shlasko9-Sep-10 10:51 
GeneralRe: Casting ItemsControl.ItemsSource to Generic Collection Pin
Jammer9-Sep-10 23:53
Jammer9-Sep-10 23:53 
AnswerRe: Casting ItemsControl.ItemsSource to Generic Collection Pin
Paul Michalik10-Sep-10 9:30
Paul Michalik10-Sep-10 9:30 
Questionwhat is advantges of using interface reference instead of class refernce Pin
am 20098-Sep-10 23:11
am 20098-Sep-10 23:11 
AnswerRe: what is advantges of using interface reference instead of class refernce Pin
DaveyM698-Sep-10 23:14
professionalDaveyM698-Sep-10 23:14 
AnswerRe: what is advantges of using interface reference instead of class refernce Pin
OriginalGriff9-Sep-10 0:22
mveOriginalGriff9-Sep-10 0:22 
AnswerRe: what is advantges of using interface reference instead of class refernce [modified] Pin
Pete O'Hanlon9-Sep-10 1:44
mvePete O'Hanlon9-Sep-10 1:44 
GeneralICheck Pin
Paul Michalik9-Sep-10 20:23
Paul Michalik9-Sep-10 20:23 
GeneralRe: ICheck Pin
Pete O'Hanlon11-Sep-10 2:16
mvePete O'Hanlon11-Sep-10 2:16 
AnswerRe: what is advantges of using interface reference instead of class refernce Pin
PIEBALDconsult9-Sep-10 4:03
mvePIEBALDconsult9-Sep-10 4:03 
AnswerRe: what is advantges of using interface reference instead of class refernce Pin
Pete O'Hanlon9-Sep-10 4:47
mvePete O'Hanlon9-Sep-10 4:47 
AnswerRe: what is advantges of using interface reference instead of class refernce Pin
Paul Michalik9-Sep-10 21:05
Paul Michalik9-Sep-10 21:05 
QuestionHow to pass ArrayList object back from a Thread Pin
largenqcd8-Sep-10 16:41
largenqcd8-Sep-10 16:41 
AnswerRe: How to pass ArrayList object back from a Thread Pin
Luc Pattyn8-Sep-10 16:56
sitebuilderLuc Pattyn8-Sep-10 16:56 
Questionconvert VB code to C# code [modified] Pin
krobinson9378-Sep-10 15:35
krobinson9378-Sep-10 15:35 
AnswerRe: convert VB code to C# code Pin
Luc Pattyn8-Sep-10 15:56
sitebuilderLuc Pattyn8-Sep-10 15:56 

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.