links DataProcessor to the component
dp.init(mygrid);
DataProcessor can be attached only to one component. Calling this method a second time will cause an error.