How to access a specific column's value in a multicolumncombobox?

I'm trying to retrieve values from the multicolumncombobox and what I get in return is

System.Data.DataRowView

Furthermore there is no clear indication of how I can access a single column and row from the control


I'll provide my code down below any help will be appreciated

  supplierMultiColumnComboBox.DroppedDown = true;


supplierMultiColumnComboBox.SelectedIndexChanged += new EventHandler (SupplierMultiColumnComboBox_SelectedIndexChanged);
if(supplierMultiColumnComboBox.DroppedDown && (supplierMultiColumnComboBox.SelectedIndex>=0))
{
MessageBox.Show(supplierMultiColumnComboBox.SelectedItem.ToString());
}



EDIT:

Nevermind since nobody replied I'll just post the reference link that helped me find the solution

https://help.syncfusion.com/windowsforms/multicolumn-combobox/faq/how-to-display-multiple-members-in-a-multicolumncombobox

For anyone who might stumble upon this question in the future this might be what you're looking for


this.multiColumnComboBox1.ListBox.Grid[this.multiColumnComboBox1.SelectedIndex + 1, i].Text + " ";

1 Reply

SM Subashini Mahendran Syncfusion Team February 28, 2022 02:27 PM UTC

Hi Ammar,


Thanks for your suggestion and we appreciate your help with this. Please let us know if you need any other assistance. We are happy to assist you.


Regards,

Subashini M.


Loader.
Up arrow icon