Datasets: Using Enum types

  • Thread starter Thread starter Guest
  • Start date Start date
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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Dataset: enum types 2
ENUM is string or integer ?? 5
datatable.import row bug/issue 4
Global Enum question 1
Casting of Enum values 6
Error when adding row to dataset 6
Datagrid problem 5
about enum 3

Back
Top