Getting print name from class name?

I have a DListView with rows with an entity class name. Is there a way to set that for the class name’s print name (which i don’t know how to get from the class, only from the entity), or is there another way around?

Yes, you can do like this:

local weapon = weapons.GetStored( v ); -- v = entity name
print( weapon.PrintName );