[英]How to add labels on the side of the gridview on the left column?
I have an empty gridview and want to display it not only with headers, but also with a label column on the left side of each row. 我有一个空的gridview,不仅要显示标题,还要在每行的左侧显示标签列。 Should I create such label column in SQL and then bind it, or it's possible to add this via C# code?
我应该在SQL中创建这样的标签列然后绑定它,还是可以通过C#代码添加它?
ps number of rows is fixed in this table. ps的行数在此表中固定。
Creating it is SQL will be a better option, if you want to modify the label name at a later stage it will be easy. 创建它是SQL将是一个更好的选择,如果您想在以后修改标签名称,这将很容易。 and if you enable sorting for the gridview, you don't have to add any new code.
并且如果启用了gridview的排序功能,则无需添加任何新代码。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.