Can data be kept in a dynamically bound GridView's invisible fields?
问题 I have a query expression which I am binding to a GridView in Page_Load. The data I want to capture in the SelectedIndexChaned event is in a BoundField defined thus: <asp:BoundField DataField="ID" HeaderText="ID" ReadOnly="True" SortExpression="ID" Visible="False" /> If I set Visible="True", I have no trouble getting this data. Is there a way to hide the ID field and still get the data? 回答1: Depends on how you are trying to get the data. If this is an ID field that is unique for each row in