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>
<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.
This is very helpful to me.
ReplyDelete