Change to NGridView widget
Port changes to code generator from Nii repository