I have a gridview that updates the underlying data. I used this for my starting point: http://msdn.microsoft.com/en-us/library/ms972948.aspx
One of the fields in the row needs to be left as "read only":
<asp:BoundField DataField="EmployeeID" ReadOnly="True" Visible="true" />
But here is the problem. I don't want to show it on the gridview. So if I change it to this...
<asp:BoundField DataField="EmployeeID" ReadOnly="True" Visible="false" />
...the value gets passed to the business and data tier as zero instead of its true value. If I set it to true, it works just fine.
Is there a way gridview can be set up to just update certain fields, or is it an "all or nothing" deal?