Filtering multicolumncombobox doesn't work as intended and results in exceptions

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

image_4.png

After pressing ok if i press backspace then this happens an "Unhandled Exception"




This is the exception log (details)


System.Numerics
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
UIAutomationProvider
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4470.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/UIAutomationProvider/v4.0_4.0.0.0__31bf3856ad364e35/UIAutomationProvider.dll
----------------------------------------
WindowsBase
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4470.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/WindowsBase.dll
----------------------------------------
UIAutomationTypes
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4470.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/UIAutomationTypes/v4.0_4.0.0.0__31bf3856ad364e35/UIAutomationTypes.dll
----------------------------------------


************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.


For example:







When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.


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






5 Replies

AM Ammar March 14, 2022 10:57 PM UTC

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



SP Sangavi Periyannan Syncfusion Team March 15, 2022 08:43 AM UTC

Hi Ammar, 
 
Thanks for reaching Syncfusion support. We have a TAT of 24-hours for responding to the queries from the query posted time. The aim of Syncfusion public forums is to assist the developer community by responding to all the technical queries, irrespective of the paid status.   It is logistically difficult for us to commit to a support response at a timeline that is less than 24 hours. We are sure you understand our situation.   
 
Regards, 
Sangavi 



AM Ammar March 15, 2022 12:41 PM UTC

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



AM Ammar replied to Sangavi Periyannan March 15, 2022 12:46 PM UTC

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



SM Subashini Mahendran Syncfusion Team March 15, 2022 01:09 PM UTC

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?


  • Video that replicates the issue.
  • Stack trace of the exception by clicking "Copy Details."(Whether stack trace shows any Syncfusion method).


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.


Loader.
Up arrow icon