简体   繁体   中英

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?

ps 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM