} else {
// Creating control depending on retrieved value type.
if (value instanceof DBHTMLString)
ctrl = new RichTextAreaDataControl();
if (value instanceof DBString)
ctrl = new TextBoxDataControl();
else if (value instanceof DBInteger)
ctrl = new IntegerDataControl();
else if (value instanceof DBBoolean) {
if (item.isRequired())
ctrl = new BooleanDataControl();
else
ctrl = new BooleanComboBoxDataControl();
} else if (value instanceof DBBigInt)
ctrl = new IntegerDataControl();
else if (value instanceof DBDate)
ctrl = new CalendarDataControl();
else if (value instanceof DBStringTime)
ctrl = new TextBoxDataControl();
else if (value instanceof DBFloat)
ctrl = new FloatDataControl();
}
// Binding row and column to control.