Hi, Mike
I think I have a better solution for you. Insted of hidden column for the
ID, you may use the DataKeyField property of the DataGrid. You may set
DataKeyField="ID". Then you can get it whenever you want, all you need to
know is the index of the DataGridItem, which ID you'd like to retrieve.
For example in DataGrid event handler:
int id = Convert.ToInt32(myDataGrid.DataKeys[e.Item.ItemIndex]);
Hope that helps!
Regards,
Kostadin Kostov
"Mike" wrote:
I have done this before in VB but I am realitively new to C#. I have a
datagrid where the first bound column represents the identity column from the
table. I have designated that first bound column to be hidden. I need to
provide update capibilities to my datagrid and therefore I need to be able to
reference the value in that first column. Could someone please share with me
the correct syntax on how to do that with a hidden column?