If you are working with
1. AutoGenerate Columns then
GrdCustomer.RowDataBound += new System.Web.UI.WebControls.GridViewRowEventHandler(GrdCustomer_RowDataBound);
.
.
.
void GrdCustomer_RowDataBound(object sender, System.Web.UI.WebControls.GridViewRowEventArgs e)
{
e.Row.Cells[0].Visible = false;
}
2. Bound Fields then
<asp:BoundField DataField="CustomerName" Visible="false" />
3.Template Field
<asp:TemplateField HeaderText="Customer Name" Visible="false">
<ItemTemplate>
<asp:Label Text='<%# Eval("CustomerName") %>' runat="server" ID="LblCusomerName" />
</ItemTemplate>
</asp:TemplateField>