Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - Deleting Items
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Deleting Items

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

Joined: 13 November 2003
Location: United States
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote jenakap Quote  Post ReplyReply Direct Link To This Post Topic: Deleting Items
    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.

Back to Top
tis707 View Drop Down
Newbie
Newbie


Joined: 28 January 2005
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote tis707 Quote  Post ReplyReply Direct Link To This Post 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
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: 31 January 2005 at 5:58am

use pItem->Remove();

 

sorry for mistake in documentation.

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.172 seconds.