private string GetText(object value) { BindingListItem item = ListDataSource.FirstOrDefault(o => object.Equals(o.Value, value)); if (item != null) { return(item.Text); } else { return(string.Empty); } }
private string GetText(object value) { BindingListItem item = ListDataSource.FirstOrDefault(o => object.Equals(o.Value, value)); if (item != null) { return(item.Text); } else { return(string.Empty); } }