I think you want to run a distinct when populating your comboboxREPLACE THIS CODE: foreach (Graphic graphic in args.FeatureSet.Features)
{
QueryComboBox.Items.Add(graphic.Attributes["STATE_NAME"].ToString());
}
With This
foreach (Graphic graphic in args.FeatureSet.Features)
{
//Set Distinct
QueryComboBox.Items.Add = (from g in args.FeatureSet.Features
orderby g.Attributes["STATE_NAME"].ToString()
select g.Attributes["STATE_NAME"]).Distinct();
}
QueryComboBox.SelectedIndex = 0;
return;
Not 100% sure of that...off the top of the head.