I did not manually enter the name. I picked it from the list of available fiels that is displayed in the dialog that opens when I click the elipses.
But the casing of the name is correct all the way from the html of the designer through the generated code:
GridView Definition
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False" DataSourceID="CustomerInfoDataSource" PageSize="20" AutoGenerateSelectButton="True" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" CellPadding="0" DataKeyNames="CustomerId" DataMember="DefaultView">
<Columns>
<asp:BoundField DataField="CustomerId" HeaderText="CustomerId" SortExpression="CustomerId" Visible="False" />
<asp:BoundField DataField="CountryRegionName" HeaderText="CountryRegionName" SortExpression="CountryRegionName" />
<asp:BoundField DataField="StateProvinceName" HeaderText="StateProvinceName" SortExpression="StateProvinceName" />
<asp:BoundField DataField="FirstName" HeaderText="FirstName" SortExpression="FirstName" />
<asp:BoundField DataField="LastName" HeaderText="LastName" SortExpression="LastName" />
<asp:BoundField DataField="EmailAddress" HeaderText="EmailAddress" SortExpression="EmailAddress" />
<asp:BoundField DataField="Phone" HeaderText="Phone" SortExpression="Phone" />
</Columns>
</asp:GridView>
Data Column Initialization in Generated TypedView
_columnCustomerId = new DataColumn("CustomerId", typeof(System.Int32), null, MappingType.Element);
_columnCustomerId.ReadOnly = true;
_columnCustomerId.Caption = @"CustomerId";
this.Columns.Add(_columnCustomerId);
CustomerId property defined in Generated Row Class
public System.Int32 CustomerId
{
get
{
if(IsCustomerIdNull())
{
// return default value for this type.
return (System.Int32)TypeDefaultValue.GetDefaultValue(typeof(System.Int32));
}
else
{
return (System.Int32)this[_parent.CustomerIdColumn];
}
}
set
{
this[_parent.CustomerIdColumn] = value;
}
}