diff --git a/BBjGridExWidget.bbj b/BBjGridExWidget.bbj index a570feb7..587cbcb9 100644 --- a/BBjGridExWidget.bbj +++ b/BBjGridExWidget.bbj @@ -508,7 +508,9 @@ class public BBjGridExWidget extends BBjWidget it! = r1!.getFieldNames().iterator() while it!.hasNext() f$ = it!.next() - r1!.setFieldAttributes(f$,ar!.getFieldAttributes(f$)) + if ar!.contains(f$) then + r1!.setFieldAttributes(f$,ar!.getFieldAttributes(f$)) + fi wend fi @@ -1598,6 +1600,19 @@ class public BBjGridExWidget extends BBjWidget declare DataRow cd! cd! = #ColumnDefinition! + + if #AttributesRecord! <> NULL() and cd! <> NULL() then + rem TODO: use the new method of components as soon as implemented + rem https://github.com/BasisHub/components/issues/87 + ar! = #AttributesRecord! + it! = cd!.getFieldNames().iterator() + while it!.hasNext() + f$ = it!.next() + if cd!.contains(f$) then + cd!.setFieldAttributes(f$,ar!.getFieldAttributes(f$)) + fi + wend + fi if cd! = null() or cd!.getFieldNames().size()=0 then if #RS! <> null() and #RS!.size()>0 then