05-08-2018, 09:31 PM
I am using Intraweb 14.2.7 and I have a question. When I use IWGrid, I create some buttons using the control field. When I use IWGrid.Clear, ir frees the object assigned to Control?
IWGrid.Clear Frees objects in control field?
|
05-08-2018, 09:31 PM
I am using Intraweb 14.2.7 and I have a question. When I use IWGrid, I create some buttons using the control field. When I use IWGrid.Clear, ir frees the object assigned to Control?
05-08-2018, 11:22 PM
Hi Luis
No, it doesn't. The IWGrid.Clear frees all grid cells, but during TIWGridCell.Destroy the control is not destroyed. However, if TIWGridCell is assigned to some control, the control will no longer be parented to the grid, but its parent becomes NIL.
05-10-2018, 12:04 PM
I learned the hard way... you gotta iterate through all of the cells and destroy the controls first.
Good thing is... it's a simple thing to do ![]()
05-13-2018, 04:15 PM
Thanks for all your replies and help!!!
|
« Next Oldest | Next Newest »
|