Hi everyone,
I recently updated Wisej to the latest version and I started testing out a project.
I noticed that once you set a DataSource to a DataGridView and then you try to clean it by setting the same DataSource to Null, the Exception System.IndexOutOfRangeException is thrown.
I created a sample project in which you can try it out.
I hope I got everything wright.
Best of regards,
Alex.
Hi Alex,
issue #2378 is fixed in our latest Wisej release (2.1.85).
Best regards
Frank
Hi Alexandru,
Thanks for reporting the issue. I’ve logged it as #2378. I’ll let you know when it’s fixed.
In the meantime, I’d recommend using a BindingSource and call “ResetBindings()” whenever your List data source changes.
You can also clear the list another way, such as: _list = new List<Employee>(); Just make sure to remove all references to the old list so the Garbage Collector can free up the memory.
Best regards,
Levie
Hi Levie,
i followed your suggestion and managed to update the DataSource as you said.
I’ll attach to this reply and example that works.
Thanks for the help you’re providing.
Alex.
Hi Levie,
thanks for your support and reply, i really appreciate that.
Hope your doing well in this times,
Alex.
Please login first to submit.