Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1225
How To Remove all item (UltraCombo, UltraGrid)
posted

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.

Parents
No Data
Reply
  • 71886
    Offline posted

    Hello ErosDark,

    You should remove the records from the datasource itself or bind the combo to an empty data source.

    I noticed that you are using controls which are retired so I can create a sample with our newest control set based on your requirements.

Children