Skip to content

AddExpandButton Method

Description

Adds an expand button to the GridRecordItem.

Syntax

Public Function AddExpandButton( _
    Optional ByVal bInside As Boolean = False _
) As GridInplaceButton

Parameters

  • bInside: True to draw the button on the inside of the cell. False to draw the button on the outside of the cell.

Return Type

Returns a reference to the GridInplaceButton just added.

Remarks

This adds an expand button to the GridRecordItem. A small button with three ellipses is displayed, and you can use this button to display your own custom dialog.

Example

ExpandButton Sample (Visual Basic): This sample illustrates how to use the Expand Button.

Const COLUMN_PROPERTIES = 5  

Private Sub wndGridControl_InplaceButtonDown(ByVal Item As XtremeGridControl.IGridRecordItem, ByVal Button As Long)  
    ' If the expand button of a column in the properties column is clicked, the properties dialog is displayed  
    If (Button = 100 And Item.Index = COLUMN_PROPERTIES) Then  
        frmProperties.Show  
    End If  
End Sub

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.