|
|
|
|
Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Krustys Donuts
|
Apr 21, 2008 - 10:27 AM
|
To clear all grid rows (not including outer rows), I would like to use RowRemoveAll on a CExtTreeGridWnd object. If the table is not empty when this method is called, an assertion is generated. Should I use a different method to accoplish this task? Below, I have included the call stack. Thanks, Gil > ProfUIS282md.dll!CExtTreeGridDataProvider::RowRemove(unsigned long nRowNo=1, unsigned long nRemoveCount=3) Line 2590 + 0x17 bytes C++
ProfUIS282md.dll!CExtGridWnd::RowRemove(long nRowNo=0, long nRowRemoveCount=3, bool bRedraw=false) Line 52565 + 0x1d bytes C++
ProfUIS282md.dll!CExtGridBaseWnd::RowTruncate(long nRowNo=0, bool bRedraw=false) Line 446 + 0x1c bytes C++
ProfUIS282md.dll!CExtGridBaseWnd::RowRemoveAll(bool bRedraw=false) Line 453 C++
Ziggy.dll!VRTeachpointGrid::SetTeachpointList(const VRTeachpointList & tpList={...}) Line 140 + 0xd bytes C++
Ziggy.dll!VRTabTeachpoints::UpdateTeachpointList() Line 57 C++
Ziggy.dll!VRMainSheet::UpdateTeachpointList() Line 65 + 0x12 bytes C++
Ziggy.dll!CDlgDiagnostics::ModifyTeachpoint(const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & strOrgTpName="Tp2_L1L", const VRTeachpoint & tpModified={...}) Line 481 C++
Ziggy.dll!VRTabJogMove::OnBnClickedEditTeachpointA() Line 343 + 0x5f bytes C++
|
|
Technical Support
|
Apr 21, 2008 - 12:44 PM
|
You should not use methods like RowRemoveAll() , RowRemove() , RowAdd() and RowInsert() with the CExtTreeGridWnd class. You should use the CExtTreeGridWnd::Item***() methods instead. You can remove all tree items by removing all child items of the root item. CExtTreeGridWnd & wndTreeGrid = . . .
HTREEITEM htiRoot = wndTreeGrid.ItemGetRoot();
wndTreeGrid.ItemRemove( htiRoot, true );
|
|