def get_row_name(self, index):
        """ Return the name of the row specified by the
        (zero-based) index. """

        if self.row_name_trait is not None:
            try:
                row = self._get_row(index)
                if hasattr(row, self.row_name_trait):
                    name = getattr(row, self.row_name_trait)
            except __HOLE__:
                name = str(index + 1)

        else:
            name = str(index + 1)

        return name
dataset/ETHPy150Open enthought/pyface/pyface/ui/wx/grid/trait_grid_model.py/TraitGridModel.get_row_name