protected function getRowKey($id) { foreach ($this->getData() as $key => $data) { if ($data->id == $id) { return $key; break; } } throw new LazerException('No data found with ID: ' . $id); }