Solved! Go to Solution.
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;
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
}