enums - c# convert datagridview id to collection names -


i'm having problems datagridview. i'm trying export row selection of datagridview1 in array used in chart in same solution. need convert id's actual collection name. tried enum list convert id collection name, compiler gives me error in end used case switch. enum correct way go convert id collection name or should follow different road?

e.graphics.drawline(pen, position1, position2(enum.getname(typeof(collectioname),idofcollectioname), positionx2, positiony2)); 

i not sure if got question but,

i need convert id's actual collection name

if mean id value can one of limited set of values, answer yes, can use enum.

but if id else, answer no, can't use it.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -