Manual DataSource Causes Exception
Posted: Tue Jun 20, 2023 2:59 pm
Hello,
Attached is a very simple sample project that reproduces an exception when changing the datasource to "manual" under Series/Datasource in the options dialog.
Extract and open the solution in VS2022. Turn "on" exceptions by ticking on the "Common Language Runtime" in the exceptions docking window. Run it (it uses the latest TeeChart NuGet package) without debugger attached. Click the Options button, go to Series / Datasource and switch the drop-down to Manual.
I've tracked the issue down to the code using DataBindings.Add with a DataGridView instead of just assigning the Datasource property to the DataTable.
Kind Regards,
Kris Culin
Bentley Systems, Inc.
Attached is a very simple sample project that reproduces an exception when changing the datasource to "manual" under Series/Datasource in the options dialog.
Extract and open the solution in VS2022. Turn "on" exceptions by ticking on the "Common Language Runtime" in the exceptions docking window. Run it (it uses the latest TeeChart NuGet package) without debugger attached. Click the Options button, go to Series / Datasource and switch the drop-down to Manual.
I've tracked the issue down to the code using DataBindings.Add with a DataGridView instead of just assigning the Datasource property to the DataTable.
Kind Regards,
Kris Culin
Bentley Systems, Inc.