GetInplaceButton Method
Description
Returns the GridInplaceButton at the specified index.
Syntax
Public Function GetInplaceButton( _
ByVal nIndex As Long _
) As GridInplaceButton
Parameters
- nIndex: Index of the GridInplaceButton to return.
Return Type
Returns the GridInplaceButton at the specified index.
Remarks
The GridInplaceButton object indicates the Column, Item, Row, and Id of the button. This will also allow you to modify where the button is drawn in the cell using the InsideCellButton property.
Example
GetInplaceButton Sample (Visual Basic)
This sample illustrates how to use GetInplaceButton to specify that the in-place button is drawn on the inside of the cell.
Dim Column As GridColumn
Set Column = wndGridControl.Columns.Add(COLUMN_SUBJECT, "Subject", 200, True)
Column.Alignment = xtpAlignmentWordBreak
Column.EditOptions.AddComboButton
Column.EditOptions.GetInplaceButton(0).InsideCellButton = True
See Also
- GridRecordItemEditOptions Object
- InplaceButtonsCount Property
- GridInplaceButton Object
- InplaceButtonDown Event
- InsideCellButton Property
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.