RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TValueListEditor.GetEditStyle Method

Indicates whether a specified cell has an ellipsis button or drop-down arrow.

Pascal
function GetEditStyle(ACol: Longint; ARow: Longint): TEditStyle; override;
C++
virtual __fastcall TEditStyle GetEditStyle(Longint ACol, Longint ARow);

GetEditStyle indicates whether the specified cell can only be edited directly (esSimple), whether it has an ellipsis button that users can click to launch an editor for modifying field values (esEllipsis ), or whether it has a drop-down arrow that users can click to display a pick list of possible values (esPickList). 

ACol is the column that contains the cell. ARow is the row that contains the cell. 

In TCustomGrid, GetEditStyle always returns esSimple, indicating that there is no ellipsis button or drop-down arrow. Descendant classes can override this methods if they provide a way to add pick lists or ellipsis buttons to cells. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!