当前位置: 动力学知识库 > 问答 > 编程问答 >

c# - 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. Should I create such label column in SQL and then bind it, or it's possible to add this via C# code?

p.s. number of rows is fixed in this table.

网友答案:

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. and if you enable sorting for the gridview, you don't have to add any new code.

分享给朋友:
您可能感兴趣的文章:
随机阅读: