<asp:BoundField HeaderText="ID" DataField="Id" ItemStyle-CssClass="hidecol" HeaderStyle-CssClass="hidecol" >
</asp:BoundField>
CSS
<style type="text/css">
.hidecol
{
display: none;
}
</style>
protected void btnDelete_Click(object sender, EventArgs e)
{
Button btn = (Button)sender;
GridViewRow gvr = (GridViewRow)btn.NamingContainer;
int idcolumnIndex = 5;
string id = gvr.Cells[idcolumnIndex].Text;
}