private VillageType?GetSelectedVillageTypeFilter() { if (VillageTypeInput.Combobox.SelectedIndex > 0) { return(VillageTypeHelper.GetVillageType(VillageTypeInput.Combobox.SelectedIndex)); } return(null); }
private void GridExVillage_EndCustomEdit(object sender, EndCustomEditEventArgs e) { if (e.Column == _columns[VillageFields.Type]) { int selected = _villageTypeBox.SelectedIndex; if (selected > 0) { e.Value = (int)VillageTypeHelper.GetVillageType(selected); } else { e.Value = null; } e.DataChanged = true; } }