Developer

InplaceEdit

Indicate currently active InplaceEdit - a child control (TextBox, ComboBox etc.) used by grid while editing.

If grid is not in editing state property return nil.

property InplaceEdit: INxInplaceEdit read GetInplaceEdit;
Before enters into edit state, grid look for inplace-edit component inside InplaceEdit property of column. If this property not set (is nil), editor component is created based on column type, and after editing is done is automatically destroyed.

Remarks


This property reference to InplaceEdit property of currently editing column.

Example:


NextGrid61.EditCell(2, NextGrid61.SelectedRow); NextGrid61.InplaceEdit.AsString := 'sample';
Last line may be written also as:

NextGrid61.Columns[2].InplaceEdit.AsString := 'sample';

See also