G
Guest
I would like to limit a field in my datagrid to only accept values in an enum that I have (gDataTypes).
To add my column I use:
columns.Add("Type", System.Type.GetType("System.String"))
Instead of System.String I would like to put in "gTableTypes", I have tried this with both "gTableTypes" and the full namespace but it does not wor. Is there anyway I can have the user select which enum value they want the field to be?
To add my column I use:
columns.Add("Type", System.Type.GetType("System.String"))
Instead of System.String I would like to put in "gTableTypes", I have tried this with both "gTableTypes" and the full namespace but it does not wor. Is there anyway I can have the user select which enum value they want the field to be?