Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Size of cell (Read 1064 times)
alesdario
Junior Member
**
Offline



Posts: 71
Joined: Mar 7th, 2007
Size of cell
Mar 22nd, 2007 at 7:16am
Print Post  
Hi stoyo

i've got a problem with event CellBoundChanged.

The cell i will modify contains one or more box.

Whan i tighten the cell i must verify that the greater distance i can move is the difference
beetwen top border of the cell and the top border of the highest box
I calculate this distance. Next, i calculate difference beetwen NewBounds.Bottom and OldBounds.Bottom.
If this difference is greater than the first difference, i would set:

NewBounds.Bottom = OldBounds.Bottom but Build action write me that it is not possible due the read-only properti of NewBounds.Bottom.

There is a wai to do this?

Thanks for your excellent support

  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Size of cell
Reply #1 - Mar 22nd, 2007 at 11:29am
Print Post  
Hi,

You could set the height of the row that contains the cell. Use GetCellRow() to get the index of the row, then set grid.RowHeaders[index].Height. That might raise the CellBoundsChanged event again - use some boolean flag to prevent reentrancy.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint