Friday, 12 September 2014

Displaying multiple data Fields in Bound field of grid view

Displaying multiple data Fields in Bound field of grid view

This article will describe how can we bound multiple fields is a grid view.

<columns>
    <asp:TemplateField  HeaderText="Name">
    <ItemTemplate>
        <div><%#Eval("CustomerFirstName")%>, <%#Eval("CustomerLastName")%></div>
    </ItemTemplate>
<asp:BoundField>
</columns>

Here two fields are bound.In this way we can bound more fields in grid view.