Dataset: 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?
 
Jeremy,

This works for me
\\\
Dim mytype As String = "System.DateTime"
dt.Columns.Add("mycolumn", System.Type.GetType(mytype))
///

I hope this helps?

Cor
 
But what if it's an enum? "Misys.Globals.gDataTable" does not work, nor does "System.Enum"

Jeremy
 
Back
Top