Click here to Skip to main content
16,008,469 members
Home / Discussions / C#
   

C#

 
GeneralRe: Outlook - right part of the window? Pin
BillyBlue27-Jul-04 3:03
BillyBlue27-Jul-04 3:03 
GeneralRe: Outlook - right part of the window? Pin
Heath Stewart27-Jul-04 5:44
protectorHeath Stewart27-Jul-04 5:44 
GeneralRe: Outlook - right part of the window? Pin
BillyBlue27-Jul-04 6:06
BillyBlue27-Jul-04 6:06 
GeneralRe: Outlook - right part of the window? Pin
Heath Stewart27-Jul-04 6:17
protectorHeath Stewart27-Jul-04 6:17 
GeneralRe: Outlook - right part of the window? Pin
BillyBlue27-Jul-04 6:25
BillyBlue27-Jul-04 6:25 
GeneralRe: Outlook - right part of the window? Pin
Heath Stewart27-Jul-04 9:08
protectorHeath Stewart27-Jul-04 9:08 
GeneralRe: Outlook - right part of the window? Pin
BillyBlue27-Jul-04 9:43
BillyBlue27-Jul-04 9:43 
QuestionHow to use NotifyParentPropertyAttribute Pin
jjansen25-Jul-04 21:19
jjansen25-Jul-04 21:19 
I'm working on an application that displays properties of an object in a PropertyGrid control. This object's properties don't have attributes (like BrowsableAttribute, CategoryAttribute, etc.). Since I want to control how and which properties are displayed in the PropertyGrid and in which categories and so on, I have made a "wrapper-class". It copies the required data from the original object and makes it accessible in custom properties which are not a one-to-one representation of the properties of the original object (instead they are split-up into more user friendly ones). The wrapper-object stores a reference to the original object as well. Some of these properties in my wrapper-class access objects which have properties themselves. With the use of the TypeConverterAttribute I am able to show and edit nested properties. When the user is done making changes in the PropertyGrid, I make the wrapper-object transfer its data to the original object.

It works, but I want to leave out this last step. I want the wrapper-object to update the data in the original object at the same time as when a property in the wrapper-class is changed. This causes a problem when the properties are nested, like mine are. When the properties of an object that is accessed by a property in the wrapper-class is changed, how will the wrapper-object know? I found an attribute that may do the trick: NotifyParentPropertyAttribute. This is a flag saying you want the parent property to be notified by a changed child property. However, I haven't a clue how (or if) the property should send this notification and how the parent should receive it.

So my question is: what should I do to be able to handle this notification. Has anyone come across this attribute before?

Thanks.

AnswerRe: How to use NotifyParentPropertyAttribute Pin
Heath Stewart26-Jul-04 10:13
protectorHeath Stewart26-Jul-04 10:13 
GeneralRe: How to use NotifyParentPropertyAttribute Pin
jjansen27-Jul-04 21:02
jjansen27-Jul-04 21:02 
GeneralProblems with GC and HttpWebResponse Pin
Amir Zicherman25-Jul-04 8:38
Amir Zicherman25-Jul-04 8:38 
GeneralRe: Problems with GC and HttpWebResponse Pin
Heath Stewart26-Jul-04 10:02
protectorHeath Stewart26-Jul-04 10:02 
GeneralRe: Problems with GC and HttpWebResponse Pin
Amir Zicherman27-Jul-04 7:59
Amir Zicherman27-Jul-04 7:59 
GeneralRe: Problems with GC and HttpWebResponse Pin
Heath Stewart27-Jul-04 10:43
protectorHeath Stewart27-Jul-04 10:43 
Questionif(DateTime.Now>=OldDateTime)..???? Pin
Adel83k25-Jul-04 6:02
Adel83k25-Jul-04 6:02 
AnswerRe: if(DateTime.Now>=OldDateTime)..???? Pin
ChrisAdams25-Jul-04 12:43
ChrisAdams25-Jul-04 12:43 
AnswerRe: if(DateTime.Now>=OldDateTime)..???? Pin
DougW4825-Jul-04 19:17
DougW4825-Jul-04 19:17 
GeneralDotNet DataGrid RowHeight Pin
Aerobatty25-Jul-04 5:08
Aerobatty25-Jul-04 5:08 
GeneralRe: DotNet DataGrid RowHeight Pin
DougW4825-Jul-04 19:45
DougW4825-Jul-04 19:45 
GeneralNeed C# Tutorial Writers - Will pay Pin
checker_src24-Jul-04 16:49
checker_src24-Jul-04 16:49 
GeneralRe: Need C# Tutorial Writers - Will pay Pin
Small Rat24-Jul-04 17:57
Small Rat24-Jul-04 17:57 
GeneralRe: Need C# Tutorial Writers - Will pay Pin
checker_src24-Jul-04 19:15
checker_src24-Jul-04 19:15 
GeneralRe: Need C# Tutorial Writers - Will pay Pin
Grimolfr25-Jul-04 2:57
Grimolfr25-Jul-04 2:57 
GeneralRe: Need C# Tutorial Writers - Will pay Pin
checker_src25-Jul-04 3:39
checker_src25-Jul-04 3:39 
GeneralConsole Applications Pin
Vickie Madigan24-Jul-04 15:33
Vickie Madigan24-Jul-04 15:33 

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.