I've placed a multicolumncombobox in my form and I am supposed to filter the data inside the listbox according to whatever text is in the textbox but whenever I enter text beyond a certain limit this happens
After pressing ok if i press backspace then this happens an "Unhandled Exception"
This is the exception log (details)
System.Numerics |
I followed the official syncfusion tutorial for this
https://www.syncfusion.com/kb/2720/how-to-implement-custom-filtering-in-winforms-multicolumncombobox
What could be the problem? I've been working with syncfusion products for the past month and every time there is some sort of error despite following the official documentation and on top of that I don't receive any quick response either
Please I have to ship this product soon help me resolve this issue asap
EDIT:
This is my code
private void supplierMultiColumnComboBox_KeyUp(object sender, KeyEventArgs e) { try { selectedRows.Clear(); if (supplierMultiColumnComboBox.TextBox.Text == "") { supplierMultiColumnComboBox.DataSource = dt; } else { keypressed = e.KeyData.ToString().ToLower(); word = supplierMultiColumnComboBox.Text; for (int i = 0; i < supplierMultiColumnComboBox.Items.Count - 1; i++) { object matchedRows = (supplierMultiColumnComboBox.Items[i] as DataRowView).Row[0]; if (matchedRows != null && matchedRows.ToString().ToLower().Contains(word.ToString().ToLower())) { selectedRows.Add(supplierMultiColumnComboBox.Items[i] as DataRowView); } } if (selectedRows.Count > 0) { supplierMultiColumnComboBox.DataSource = selectedRows; supplierMultiColumnComboBox.DroppedDown = false; supplierMultiColumnComboBox.DroppedDown = true; supplierMultiColumnComboBox.TextBox.Text = word; supplierMultiColumnComboBox.SelectionStart = supplierMultiColumnComboBox.Text.Length; supplierMultiColumnComboBox.TextBox.SelectionLength = supplierMultiColumnComboBox.Text.Length; } else { supplierMultiColumnComboBox.DataSource = dt; } } } catch(Exception) { supplierMultiColumnComboBox.DataSource = dt; } } |
Also how does this filter work?
https://help.syncfusion.com/windowsforms/multicolumn-combobox/multiple-columns
I cannot understand what
var item = o as OrderInfo;
is supposed to represent
I guess this forum is only for paid customers because I only get responses when my reported scenario is a bug or if I post an answer here otherwise I don't receive any response
At least let everyone know so we don't waste time here and use some other tools instead of syncfusion
Will anyone here please help? If you're not gonna help let me know I'll look for an alternative to syncfusion because it seems Syncfusion team doesn't want me to use its products
I understand but I have to ship a product and a lack of response is frustrating because the documentation on this site does not assist either but thank you I hope there is a solution to this issue soon
Hi Ammar,
Sorry for the inconvenience caused.
Query 1: Filtering MultiColumnComboBox doesn't work as intended and results in exceptions
We have tried to reproduce the reported exception, but we were unable to reproduce the issue at our end. Please find the video and sample which we have used to reproduce the reported issue below and let us know whether we missed any scenario in replicating the issue. If possible, please modify the attached sample to reproduce the reported issue.
Sample: MultiColumnComboBox-sample
Video: MultiColumnComboBox-video
Can you please provide the below requested details?
Please share all these details. It would be helpful for us to check and provide a prompt solution to this.
Query 2: Also, how does this filter work mentioned in the following UG Documentation https://help.syncfusion.com/windowsforms/multicolumn-combobox/multiple-columns#custom-filtering
In following UG Documentation https://help.syncfusion.com/windowsforms/multicolumn-combobox/multiple-columns#custom-filtering, we have explained custom filtering of MultiColumnComboBox with example by setting a collection to its DataSource property which is of type List<OrderInfo>. Please find the sample regarding custom filtering support below:
Simple sample link: MultiColumnComboBox-custom-filtering
GitHub sample link: https://github.com/essential-studio/winforms-demos/tree/development/listcontrols/Multi%20Column%20ComboBox/Filtering/CS
If we misunderstood the query, please provide more details about the requirement. It will help us to prompt a solution further.
Regards,
Subashini M.