Answer: The BoundField,which displays the value of specified DataSource field as text.This is the type of column used by default when tying a GridView to a DataSource through the Smart Tag interface.
This is said to be a Read-only field.It has DataField property.We have provide DataField to a column_name.
Like below:
<asp:GridView ID="grid_employee_details" runat="server" AutoGenerateColumns="false">
<Columns>
<asp:BoundField HeaderText="Employee Name" DataField = "first_name" />
</Columns>
</asp:GridView>
Asked In: Many Interviews |
Alert Moderator