Posted on: 10/1/2014 6:31:05 PM | Views : 501

Hi,

While I am taking boundfield to the code-behind, I am getting the below mentioned error:
No mapping exists from object type System.Web.UI.WebControls.BoundField to a known managed provider native type.  Please see my code for your reference:-
<asp:BoundField DataField="JobId" HeaderText="Job ID" Visible="false"/> code behind:- private void gridSaveValues() { foreach (GridViewRow dgvr in gv_Applicants.Rows) { using (SqlConnection conn = new SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["DefaultSQLConnectionString"].ConnectionString)) { BoundField bfield = new BoundField(); bfield.HeaderText= "Job Id" DropDownList ddlSelect = (DropDownList)dgvr.FindControl("ddlSelection"); ...

Go to the complete details ...