I have a GridView with a DataSource
(SQL Database). I want to hide a column, but still be able to access the value when I select the record. Can someone show me how to do this?
This is the column I want to hide and still want to access its value:
<asp:BoundField DataField="Outlook_ID" HeaderText="OutlookID" />
I tried everything to hide the column (property Visible="false"
), but I can't access its value.
When I want access some value from
GridView
beforeGridView
was appears.BoundField
and bindDataField
nomally.RowDataBound
event, I do some process in that event.Before
GridView
was appears I write this: