I got it to work but I had to make a few changes.
First comment out your own FindResource method in the source so that it will not be called.
It is always returning null and I am not sure why it is being defined.
You also need to set the DataContext of the grid to the resource...
Try using the following:
declare GridList as list[type WPFGridZeilen] create Gridlist declare cvsOptions as type CollectionViewSource = self::FindResource("cvsOptions") as type CollectionViewSource set cvsOptions::Source to GridList set dg::DataContext to cvsOptions set GZ to new WPFGridZeilen( property GrSpalte01 = "D" property GrSpalte02 = "28816" property GrSpalte03 = "Brinkum" property GrSpalte04 = "An den Ruschen" property GrSpalte05 = "27a" property GrSpalte06 = "" property GrSpalte07 = "" property GrSpalte08 = "" property GrSpalte09 = "" property GrSpalte10 = "" property GrSpalte11 = "" property GrSpalte12 = "" property GrSpalte13 = "" property GrSpalte14 = "" property GrSpalte15 = "" property GrSpalte16 = "" property GrSpalte17 = "" ) invoke GridList::Insert(0, GZ).