Original User: hochas
FindObjectInLayout only works for elements that is in your layout, so unless your DataGrid is created straight in the layout you wont find it that way. To close the datagrid if its in another window, try adding a static close-event to the add-in containing the DataGrid, then calling that static method when you run your clear graphics add-in.