编码仍然显示字段名称而不是标题

时间:2014-03-05 16:33:22

标签: c# asp.net

在下面的代码中,我想显示不是PATIENT NAME,而是显示标题中的“NAME” 但它仍然显示“患者姓名”。除了标题之外还有其他用途吗?

<Templates>
<DetailRow>
<dx:ASPxGridView ID="gvDetail" runat="server" ClientInstanceName="gvDetail" 

 AutoGenerateColumns="false"
 DataSourceID="SqlDataSource1" Width="1100px" KeyFieldName="ID_KEY"
 OnBeforePerformDataSelect="detailGrid_DataSelect" OnInit="gvDetail_Init">
 <Columns>
      <dx:GridViewDataTextColumn FieldName="ID_KEY" Visible="false">
      </dx:GridViewDataTextColumn>
     <dx:GridViewDataTextColumn FieldName="PATIENTNAME" Caption="Name" VisibleIndex="2">
     <HeaderStyle HorizontalAlign="Center" />
      <CellStyle HorizontalAlign="Left"></CellStyle>
           <HeaderTemplate>
           <div style="text-align: left; vertical-align: middle; float: left;">
              <div style="float: left;">
              <dx:ASPxImage runat="server" ID="imgFilterDetail" ToolTip="Show/hide grid  filter" ImageUrl="~/Content/Images/GridFilterButton.png">
              <ClientSideEvents Click="ImageClickDetail" />
              </dx:ASPxImage>
              </div>
             <div style="float: left; padding-left: 10px; padding-top: 4px;">
                      Patient Name
              </div>
                 </div>
                              </HeaderTemplate>

0 个答案:

没有答案