I see the Enum.GetValues
returns base Array
type and Enum.GetNames
returns a string
array. But I don't understand how this is very significant. For an enum
anyways, the values are strings.
But, there is an associated problem. The DataGridView
ComboBox
column databinds to an enum
if I give the DataSource
= Enum.GetValues
, but it doesn't databind when I give it Enum.GetNames
as a DataSource
.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…