Click here to Skip to main content
15,885,954 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: A General Question About DataGrid Controls [modified] Pin
GenJerDan21-Jan-11 11:29
GenJerDan21-Jan-11 11:29 
GeneralRe: A General Question About DataGrid Controls Pin
Roger Wright21-Jan-11 17:12
professionalRoger Wright21-Jan-11 17:12 
QuestionReusable Lookup Control [modified] Pin
Ed Hill _5_20-Jan-11 0:06
Ed Hill _5_20-Jan-11 0:06 
AnswerRe: Reusable Lookup Control Pin
Ian Shlasko20-Jan-11 6:09
Ian Shlasko20-Jan-11 6:09 
GeneralRe: Reusable Lookup Control Pin
Ed Hill _5_20-Jan-11 22:15
Ed Hill _5_20-Jan-11 22:15 
GeneralRe: Reusable Lookup Control Pin
Ian Shlasko21-Jan-11 3:44
Ian Shlasko21-Jan-11 3:44 
GeneralRe: Reusable Lookup Control Pin
Ed Hill _5_21-Jan-11 1:50
Ed Hill _5_21-Jan-11 1:50 
AnswerRe: Reusable Lookup Control Pin
Ed Hill _5_21-Jan-11 5:58
Ed Hill _5_21-Jan-11 5:58 
Ok think i have solved the issue i was having, wit the lookupnot updating the control it was on, the cause was only scalars automatically trigger a change notification, the solution was adding the following to a partial class.
public partial class Charge
    {
        public Charge()
        {
            this.ActivityReference.AssociationChanged += new System.ComponentModel.CollectionChangeEventHandler(ActivityReference_AssociationChanged);
        }

        void ActivityReference_AssociationChanged(object sender, System.ComponentModel.CollectionChangeEventArgs e)
        {
            if ((e.Action == System.ComponentModel.CollectionChangeAction.Remove))
                OnPropertyChanging("Activity");
            else
                OnPropertyChanged("Activity");
        }
    }


If any one is able to share a best practice way to make the lookup use the same ObjectContext as the Window is using that would be most helpful. I think the line below outlines the situation i am in, and the aim is for the cEntities Context = new cEntities(); from the window to be used in the lookup when popluating the ComboBox.ItemsSource.

Window>Databound List View>Item Template>Lookup User Control
QuestionPlease help on LINQ Order By in VB.NET Pin
kishan NM19-Jan-11 2:30
kishan NM19-Jan-11 2:30 
AnswerRe: Please help on LINQ Order By in VB.NET Pin
Ian Shlasko19-Jan-11 2:48
Ian Shlasko19-Jan-11 2:48 
GeneralRe: Please help on LINQ Order By in VB.NET Pin
kishan NM19-Jan-11 3:52
kishan NM19-Jan-11 3:52 
GeneralRe: Please help on LINQ Order By in VB.NET Pin
Ian Shlasko19-Jan-11 4:40
Ian Shlasko19-Jan-11 4:40 
GeneralRe: Please help on LINQ Order By in VB.NET Pin
kishan NM19-Jan-11 6:53
kishan NM19-Jan-11 6:53 
GeneralRe: Please help on LINQ Order By in VB.NET Pin
Ian Shlasko19-Jan-11 7:56
Ian Shlasko19-Jan-11 7:56 
AnswerRe: Please help on LINQ Order By in VB.NET Pin
dasblinkenlight19-Jan-11 4:49
dasblinkenlight19-Jan-11 4:49 
AnswerRe: Please help on LINQ Order By in VB.NET Pin
#realJSOP19-Jan-11 7:27
mve#realJSOP19-Jan-11 7:27 
QuestionUser account rights Pin
marca29217-Jan-11 0:50
marca29217-Jan-11 0:50 
AnswerRe: User account rights Pin
_Erik_17-Jan-11 3:07
_Erik_17-Jan-11 3:07 
GeneralRe: User account rights [modified] Pin
marca29217-Jan-11 21:32
marca29217-Jan-11 21:32 
AnswerRe: User account rights Pin
Ravi Sant18-Jan-11 1:12
Ravi Sant18-Jan-11 1:12 
QuestionWhen to Define a Custom Exception Pin
Patrick Skelton13-Jan-11 23:57
Patrick Skelton13-Jan-11 23:57 
AnswerRe: When to Define a Custom Exception Pin
Pete O'Hanlon14-Jan-11 0:13
mvePete O'Hanlon14-Jan-11 0:13 
AnswerRe: When to Define a Custom Exception Pin
Eddy Vluggen14-Jan-11 0:42
professionalEddy Vluggen14-Jan-11 0:42 
AnswerRe: When to Define a Custom Exception PinPopular
Daniel Turini14-Jan-11 0:44
Daniel Turini14-Jan-11 0:44 
GeneralRe: When to Define a Custom Exception Pin
Dan Neely14-Jan-11 3:03
Dan Neely14-Jan-11 3:03 

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.