NextGrid & NextDBGrid








NextGrid .NET

Integrating Inplace Editors

Related Articles:

  • Skill:
  • Version: 1.0.0
  • Author: Bojan Nikolic
  • Created: 2008-07-24
  • Updated: 2008-07-24
From version 3.3.3 each column have InplaceEditor property. This property allows you to attach any stand-alone TNxCustomEdit Inplace Editor to any Column Type!

For example, you may attach NxSpinEdit control to Progress Column, or to Rate Column. Also you can attach NxColorPicker to Text Column.

Setting standalone edit

First we need to place one NxEdit component (NxEdit, NxSpinEdit, NxColorPicker...) on form.

You can set any property such as Font, Color, Alignment, Glyph, Margin...

Also, you can set some of Events too.

Please note that events OnChange, OnKeyDown , OnKeyPress, OnEnter, OnExit will be delegated to Grid.

After you have finish with setting properties, turn Visible property to False, because this Edit control will be used only as Inplace Editor. Also, for better visual appearance, set BorderStyle to bsNone

2. Attach Edit to a Column

To attach edit to a Column simply set InplaceEdit to this edit component.

Also, don't foget to enable editing inside this column with setting coEditable to True inside Options property of Column.

Stand-alone editors may be also used inside Input Line. In that case don't forget to set coCanInput to True inside Options property of Column.

Was This Article Useful?

Only constructive comments, code contributions... will be publishes. Questions, non-official discussion will not be published.