Anyone know why i get the following error when I try to programmatically (vb.net) change the datasource of my ultrawingrid.ultracombo? Error: "Object reference not set to an instance of an object."
I'm using a custom class as my datasource and I am getting the class from another combobox's active row. This is a strange setup, the reason behind this is that i want to change the datasource of comboB depending on what the user selects in ComboA. It works for one change, but when I try to change it to something else I get the above error.
p.s. the object in the ComboA is set to a data type of object because since the class changes, the type will change too, is this part of the problem? is there a way to completely reset the infragistics combobox or something?
any help will be greatly appreciated!
Infragistics V5.1.01 vb.net 2003 v 7.1.6030 .NET framework 1.1.4322 SP1
workaround: set focus to ComboB before setting its datasource.
Here is a simplier example of making it crash.Click in comboB then select a row from ComboA which changes the datasource of comboB. This will make it crash.... just entering the ComboB changes some property. any ideas what it could be? I'm not sure what you mean by the call stack...
Do you get a call stack when the exception occurs?
Very often, an error like this occurs in the InitializeLayout or InitializeRow even of the control, and it gets caught and handled so you don't immediately see the line of code that the exception is occurring on unless you look at the call stack or set the IDe to break on all runtime exceptions.