简体   繁体   中英

How to get value from hidden column in gridview?

I have a gridview and sqldatasource.

When I bounded gridview to sqldatasource ,I've selected all columns from the sql database. And after this , I've removed my self some columns from the gridview.

Now , I want to get the value from the removed column without adding the column to the gridview.

THanks

您可以将这些列添加回网格视图,并将其可见属性设置为false,这样它们就不会在页面上呈现,但是您可以在后面的代码中访问它们。

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