public function setPrimaryKey($primary_key)
	{
		if ($this->dataModel instanceof DataModel) {
			throw new DataGridException('Please set datagrid primary key before setting datasource.');
		}

		$this->primary_key = $primary_key;

		return $this;
	}
public function setPrimaryKey($primary_key)
	{
		if ($this->dataModel instanceof DataModel) {
			throw new DataGridException('Please set datagrid primary key before setting datasource.');
		}

		$this->primary_key = $primary_key;

		return $this;
	}
public function setPrimaryKey ( $ primary_key ) { if ( $ this -> dataModel instanceof DataModel ) { throw new DataGridException ( 'Please set datagrid primary key before setting datasource.' ) ; } $ this -> primary_key = $ primary_key ; return $ this ; }
By default ID, you can change that
@param string $primary_key
@return static
By default ID you can change that