Hello everyone, please, could you help me,I have this code, but it fires an exception, What is the best way to RemoveAll items from my UltraCombo, (Under Sheridan was: SSCombo.Removeall). Thanks in adnvance,
If UltraCombo.Rows.Count > 0 then
UltraCombo.DataSource = Nothing
Else
UltraCombo.DataSource = MyNewDataSource
End if
Error: Object reference not set to an instance of an object.
The NullReference exception is probably occurring in your code - maybe you have code in an event handler of the grid such as InitializeLayout and you are trying to access an object that is null when the grid's DataSource is null. It might help if you set the Visual Studio IDE to break on all run-time exceptions so you can see exactly what line of code the exception occurs on.
Thanks a lot, Good idea,
Regards.