![](/img/trans.png)
[英]Is there an Attribute I can use on a property to tell DataGridView how to format the column?
[英]How can I use resorce for Description attribute for a property?
我的财产如下:
[Description("Name Of Person")]
public string FirstName {get; set;}
有什么方法可以将资源用于“人名”语句,如下所示:
[Description(MyResource.FirstName)]
public string FirstName {get; set;}
是的,您正在使用资源文件。 本文介绍如何通过代码使用它们
http://msdn.microsoft.com/en-us/library/gg418542.aspx
但是我认为视觉工作室为此目的拥有相当好的设计师。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.