for (int i = 0; i < groups.length; i++) {
if (groups[i] == null)
throw new IllegalArgumentException("Group cann`t be null.");
// Create FormItemsGroupWidget for this group.
FormItemsGroupWidget groupWidget = new FormItemsGroupWidget(this,
this, this, this.panel);
groupWidget.initFormItemsGroup(groups[i], this.dataRow);
this.groupWidgets.addFormItemsGroupWidget(groupWidget);
// Adds group to grid
if (i == 0) {
// if this is first group, than create first row