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 |
|
Adam Keadey
|
Jul 30, 2007 - 9:21 AM
|
I have a CExtGridCellPicture in a CReportGridWnd and I want the set the row height for each row to the actual size of the picture?
The row height for each row could be different depending on the image.
I do not allow the row height to be resized through drop and drag.
|
|
Technical Support
|
Jul 30, 2007 - 10:31 AM
|
You should invoke the BestFitRow() method after all its cells, including pictures, were initialized.
|
|
Adam Keadey
|
Jul 31, 2007 - 10:19 AM
|
BestFitRow takes the row number and I have the CExtReportGridItem.
How can I get the RowNumber?
When is the best time to call BestFitRow? Should I just call it every time I update and item in the grid?
I have and UpdateItem Function that roughly follows
Update the item from ReportGridItem
ReportSortOrderUpdate
|
|
Technical Support
|
Aug 1, 2007 - 11:37 AM
|
Actually the question is how to convert a CExtReportGridItem object into the row number so it can be used in the BestFitRow() method. If so, you can do this using the CExtTreeGridWnd::ItemGetVisibleIndexOf() method: LONG nRowNo = ItemGetVisibleIndexOf( *pRGI );
|
|