DataGridView DataSource - IndexOutOfRangeException (Version 2.1.81.0)

Answered
0
0

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.

Attachment
  • You must to post comments
Best Answer
0
0

Hi Alex,

issue #2378 is fixed in our latest Wisej release (2.1.85).

Best regards
Frank

  • Alexandru
    Hi Frank thanks for you support. I hope you’re doing well. Best of regards, Alex.
  • You must to post comments
Best Answer
0
0

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

 

 

  • You must to post comments
0
0

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.

Attachment
  • You must to post comments
0
0

Hi Levie,

thanks for your support and reply, i really appreciate that.

Hope your doing well in this times,

Alex.

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.