Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Property Grid
  New Posts New Posts RSS Feed - AfterEdit clear & add new items trouble
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

AfterEdit clear & add new items trouble

 Post Reply Post Reply
Author
Message
brujaedea View Drop Down
Newbie
Newbie


Joined: 15 February 2006
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote brujaedea Quote  Post ReplyReply Direct Link To This Post Topic: AfterEdit clear & add new items trouble
    Posted: 15 February 2006 at 5:18am

Hi

All I want to do is clear and add new items to de PropertyGrid after I select an option in one item... (I have a combobox with some options depending on the one you select, you will have different new options)

My class has this:
- "LoadInfo" method that clears all categories and then adds all items depending on the class info. (it uses beginUpdate and EndUpdate)
-  After edit function that changes some class atrributtes and returns a boolean which expresses whether the propertygrid needs to be reloaded or not.

In my AfterEditEventHandler:
void Form1::my_axPropertyGrid_AfterEdit(System::Object * sender, AxInterop::XtremePropertyGrid::_DPropertyGridEvents_AfterEdi tEvent * e){
   
bool need_refresh = my_object->afteredit(sender,e);
    if (need_refresh){
        my_object->LoadInfo();
   
}
}
And.... It crashes after doing the LoadInfo... I get a nice NullReferenceException ... Any Idea of what I´m doing wrong??

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.