Print Page | Close Window

BeginUpdate/EndUpdate Deleting the existing nodes

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=4833
Printed Date: 20 May 2024 at 3:39pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: BeginUpdate/EndUpdate Deleting the existing nodes
Posted By: Tomas
Subject: BeginUpdate/EndUpdate Deleting the existing nodes
Date 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





Replies:
Posted By: Oleg
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net