How to get Hidden Column Value in GridView
1. First Way - Use DataKeyNames Property of GridView (a) DataKeyNames is used to specify Primary key coulmn(s) of the data source that is bound to the GridView. When DataKeyNames property of GridView is set then values of specified columns are stored in DataKeys collection that is available at runtime. <asp:GridView ID="dtgOutwardSpare" runat="server" AutoGenerateColumns="False" AutoGenerateSelectButton="True" CellPadding="4" DataKeyNames="AssetID,OutwardTypeID" OnSelectedIndexChanged="dtgOutwardSpare_SelectedIndexChanged" Width="890px" ConvertEmptyStringToNull="true" HtmlEncode="false" HtmlEncodeFormatString="false"> <AlternatingRowStyle BackColor="White" /> <Columns> <asp:BoundField DataField="AssetID" HeaderText="AssetID" Visible=...