Skip to main content

TcxCustomEdit.InplaceParams Field

Represents in-place edit parameters.

Declaration

InplaceParams: TcxInplaceEditParams

Field Value

Type
TcxInplaceEditParams

Remarks

Use the InplaceParams property to obtain the following information:

  • Determine whether the parent container can simultaneously display data of the bound item in multiple rows (the InplaceParams.MultiRowParent field).

  • Identify the record that owns the edit value (the InplaceParams.Position.RecordIndex field).

  • Access the item to which the edit value belongs (the InplaceParams.Position.Item field).

The following example demonstrates how the corresponding record index of a selected data cell can be obtained when an in-place editor’s button is clicked:

//...
procedure <TForm1>.<cxGrid1DBTableView1PictureProperties>ButtonClick(Sender: TObject; AButtonIndex: Integer);
var
  ARecordIndex: Integer;
begin
  ARecordIndex := TcxButtonEdit(Sender).InplaceParams.Position.RecordIndex;
end;
See Also