Hey there,
I'm trying to use the MultiColumnComboBox from 2009.1.9.414 to do an AutoFilter on a DataSource that is an array of Buisness Objects.
I've done this before with a DataSource that is a DataTable, and it worked fine. The exact same code is failing to work altogether for Business Objects. Without the filter, I get the full thousand-odd account items returned. With the filter, I get nothing, no matter what I search for.
Other than stepping through my array and creating the DataTable myself, is there another method for doing this?
Sample code below:
AccountData[] data = this.GetData(); |
this.cboSelectTaskAccount.DataSource = data; |
// ... Set up my columns |
if (this.cboSelectTaskAccount.EditorControl.MasterGridViewTemplate.FilterExpressions.Count < 1) |
{ |
FilterExpression filter = new FilterExpression( |
this.cboSelectTaskAccount.DisplayMember, |
FilterExpression.BinaryOperation.AND, |
GridKnownFunction.Contains, |
GridFilterCellElement.ParameterName); |
filter.Parameters.Add(GridFilterCellElement.ParameterName, true); |
this.cboSelectTaskAccount.EditorControl.MasterGridViewTemplate.FilterExpressions.Add(filter); |
} |
I'm hoping there's a fix for this in 2009.1.9.414, as the cost for refactoring to the latest version would be quite steep right now.
Thanks for your time.