Professional UI Solutions
Site Map   /  Register


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.

Forums » Prof-UIS General Discussion » Bug in OuterRowCountTopSet Collapse All
Subject Author Date
Nikita Davydov Apr 18, 2010 - 12:18 PM

In my program I needed dynamic grid that change number if its outer column and rows.
For example in one time it has 2 outer rows and in another time no outer rows. I should call OuterRowCountTopSet (2, false) and OuterRowCountTopSet (0, false) for this.
But second calls fails. After analysis code of ProfUIS (ver. 2.85) the problem was found in ExtGridWnd.cpp, line 53548, CExtGridWnd::OuterRowCountTopSet ()
After correction all works fine:

            if( ! _DataProvider.RowRemove(
//                    nOuterRowCountTop - nCount, // By Nikitos I
                    nCount, // By Nikitos I
                    nOuterRowCountTop - nCount
                ASSERT( FALSE );
                return false;
        } // else from if( nCount > nOuterRowCountTop )

The same problem was found in OuterColumnCountLeftSet ().
May be it is in otherOuter…Count…Set(), I didn’t check.

Sincerely yours,
Nikitos I

Technical Support Apr 19, 2010 - 6:06 AM

Thank you for your issue report. It’s already fixed in the later Prof-UIS versions.