Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - BeginUpdate/EndUpdate Deleting the existing nodes
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

BeginUpdate/EndUpdate Deleting the existing nodes

 Post Reply Post Reply
Author
Message
Tomas View Drop Down
Newbie
Newbie
Avatar

Joined: 21 July 2006
Status: Offline
Points: 21
Post Options Post Options   Thanks (0) Thanks(0)   Quote Tomas Quote  Post ReplyReply Direct Link To This Post Topic: BeginUpdate/EndUpdate Deleting the existing nodes
    Posted: 18 August 2006 at 3:44pm
I was trying to update a bunch of nodes in the property-grid so I decided to use the "BeginUpdate / EndUpdate" because I didn’t know how many the user could add. I found out that BeginUpdate actually deletes the current content of the property-grid. Is that the expected behavior?


If so it means that the manual is wrong. Because it doesn’t only add/delete individual nodes, but rather clears the contents of the control and then allows you to add.

… OR is it that I am doing something wrong?

Tomas


Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 18 August 2006 at 4:00pm
Yes, it is expected.
 
You can just call
GetGridView().SetRedraw(FALSE);
GetGridView().SetRedraw(TRUE);
if you don't want to delease al items.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.