Kaarim,
No I don't have an example, I am providing advice not actually doing the coding. If you look at the commitProperties function you will see how other items that are in the declarations section are added by using the vGroup.addElement and then using the id of the component in the declarations section (I notice that you datagrid does not have an id). If you are struggling with this part you are probably in over your head.