How can I get dataProcessor form grid object?

Something like mygrid.getDataProcessor ?

I need this for custom grid implementation

Grid has not any reference to the dataprocessor ( they linked by events , so need not direct references )
You can made custom reference while creating dataprocessor

var dp = new DataProcessor(url);
mygrid.dataProcessor = dp; //storing reference