The namespace Model. FileEnum
{
Public enum SexEnum
{
[Description (" unknown ")]
UnKnown=0,
[Description (" male ")]
Man=1,
[Description (" female ")]
Wonman=2,
}
}
Var sexs=new List
Gridcontrol. The datasource=sexs;
After the GridControl shows: UnKnow
How to let he shown as unknown or content in Chinese
CodePudding user response:
GetCustomAttributeWrite in Chinese
CodePudding user response: