ComponentOne True DBGrid Pro 8
LayoutReady Event

 

Object Reference> True DBGrid Events> LayoutReady Event

LayoutReady Event

The LayoutReady event fires when asynchronous downloading of a grid layout file has completed.

Syntax

object_LayoutReady ( )

Arguments

None

Remarks

The location of the layout file is determined by the LayoutURL property.

If you set the LayoutURL property to a nonempty string at design time (and LayoutFileName is empty), the grid initiates asynchronous downloading at run time after it has been loaded. You can also initiate downloading by setting the LayoutURL property in code. This technique is particularly useful for initializing a grid on an HTML page.

In either case, the grid fires the LayoutReady event when the download operation has completed. You should write a handler for this event that loads the desired layout as follows:

TDBGrid1.LayoutName = "MyLayout"

TDBGrid1.LoadLayout

Note

You can create grid layout files at design time by setting the LayoutFileName and LayoutName properties and using the layout commands on the grid's visual editing menu.

See Also

TDBGrid Control

TDBDropDown Control

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback