ISingleColumnBind ctrl = null;
// If this is multiline edited item.
if (item instanceof IMultilineEditFormItem
&& value instanceof DBString) {
ctrl = new TextAreaDataControl(
((IMultilineEditFormItem) item).getRowsCount());
} else {
// Creating control depending on retrieved value type.
if (value instanceof DBHTMLString)
ctrl = new RichTextAreaDataControl();