Print Page | Close Window

Deleting Items

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=243
Printed Date: 04 June 2024 at 8:31am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Deleting Items
Posted By: jenakap
Subject: Deleting Items
Date Posted: 13 November 2003 at 5:21pm

Hi

I am evaluating the property grid for use in one of our products. We use VC6 and MFC for our app. I was wondering how to delete an item from the property grid? When I try to do the following:

CXTPPropertyGridItem * pItem = m_propGrid.GetSelectedItem();

if (pItem) pItem->Delete();

I get a compile error saying delete is not a member of CXTPPropertyGridItem. Your documentation says it is. The header file however has a ifdef for DOTNET. How do you delete something from the property grid in VC6?

Ideally, I would like to select an item and click on a button and have the app delete that and any of its children.




Replies:
Posted By: tis707
Date Posted: 28 January 2005 at 4:26am

 C_Recordset rset = m_DataControl.GetRecordset();
  rset.Delete(1);

 

try this

datacontlo is the member variable of ado contrlo

 



-------------
tis


Posted By: Oleg
Date Posted: 31 January 2005 at 5:58am

use pItem->Remove();

 

sorry for mistake in documentation.



-------------
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