FeatureLayer featureLayer = (FeatureLayer)mobileCache1.Layers["Streets"]; DataTable dt = (DataTable)featureLayer.GetDomain(0,"street_name"); comboBox1.ValueMember = "Code"; //** Column name is case sensitive comboBox1.DisplayMember = "Value"; comboBox1.DataSource = dt;
I hope this piece of code will help you get started: FeatureLayer featureLayer = (FeatureLayer)mobileCache1.Layers["Streets"]; DataTable dt = (DataTable)featureLayer.GetDomain(0,"street_name"); comboBox1.ValueMember = "Code"; //** Column name is case sensitive comboBox1.DisplayMember = "Value"; comboBox1.DataSource = dt;
IDomain domain = fdr.GetDomain(i); DataTable dtDomain = (DataTable)domain; if (domain is CodedValueDomain) { CodedValueDomain cvd = (CodedValueDomain)domain; //..................... Actions for CodedValueDomain } else // if (domain is RangeValueDomain) { RangeValueDomain rvd = (RangeValueDomain)domain; //.................. Actions for RangeValueDomain }
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.