Skip to main content

TcxCustomGridView.Site Property

Provides access to the control that holds the View.

Declaration

property Site: TcxGridSite read;

Property Value

Type
TcxGridSite

Remarks

Views in a grid control are arranged on specially designed controls represented by TcxGridSite objects. This allows Views to provide their own mouse and keyboard event handling. Thus, View events that fire in response to mouse and keyboard actions together with drag and drop events pass the View’s owner site as their sender parameter. When you obtain a grid site via an event’s parameter, you can determine the View that it holds using the site’s GridView property.

Use the Site property when you need to access the underlying control’s properties and methods. For instance, you can use this property to access methods that allow you to start drag and drop operations.

In order to make a popup menu appear when the View is selected and an end-user clicks it with the right mouse button, assign a value to the View’s PopupMenu property.

See Also