What does BoundField mean in Gridview?

 Posted by vishalneeraj-24503 on 1/14/2014 | Category: ASP.NET Interview questions | Views: 3383 | Points: 40

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">

<asp:BoundField HeaderText="Employee Name" DataField = "first_name" />

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response