Jax
Jax

Reputation: 997

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

Upvotes: 0

Views: 3751

Answers (1)

Beenish Khan
Beenish Khan

Reputation: 1583

You can add the columns back to grid view and set their visible property to false, that way they won't render on the page but you would have access to them in code behind.

Upvotes: 1

Related Questions