How to bind Choice field Column with DropDownList in SharePoint

Guid siteId = SPContext.Current.Site.ID;
             SPSecurity.RunWithElevatedPrivileges(delegate()
             {

                 using (SPSite site = new SPSite(siteId))
                 {
                     using (SPWeb objSPWeb = site.RootWeb)
                     {
                         SPList objSPList = objSPWeb.Lists[CIRPD.Common.Constants.LIST_ACADEMIC_COMMUNITY_RESEARCHERS];
                         SPFieldChoice field = (SPFieldChoice)objSPList.Fields["Highest Degree"];
                         AcademicPosition.DataSource = field.Choices;
                         AcademicPosition.DataBind();
                     }
                 }
             });

Ebook Download
View all
Learn
View all