阅读背景:

在gridView中获取绑定类型的模板化列控件

来源:互联网 

Hi I have following grid view

嗨,我有以下网格视图

  <asp:GridView ID="grdSettings" runat="server" Height="400px" Width="100%"
                        AutoGenerateColumns="false" >
                        <Columns>
                            <asp:TemplateField HeaderText="XYZ"  BoundFieldName="XYZTypeName">
                                <ItemTemplate>
                                    <asp:Label ID="lblCustomerName" runat="server" Text='<%# Bind("CustomerName") %>'>
                                    </asp:Label>

                                        <asp:Label ID="lblCostumerId" runat="server" Text='<%#Bind("CustomerId") %>'></asp:Label>

                            </asp:TemplateField>
                        </Columns>
                     </asp:GridView>   
 



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: