code: public function render(){
  		$sort=0;
  		$query=$this->request->getQuery();
  		if(isset($query['sort']) && isset($this->columns[$query['sort']])){
  			$sort=$query['sort'];
  		}
  
  		return $this->formatter->render($this->columns
  			,$this->getRecords()
  			,$this->dataManager->getTotalCount(),$this->limit,$this->page,$sort);
  	}
docs: Generate html grid string
  
  @return string with html form