I'm getting "Index was outside the bounds of the array." error when setting the datasource of an ultragrid. I read this has to do with threading, however, I'm not familiar enough with the concept to see where I'm going wrong.
What do I do to correct this?
Thank you.
Hi,
This could be a threading issue. Is your application using multiple threads? If so, then I would strongly advise against using multiple threads and databinding together. When you bind a control, you do not have any control over the communication between the control and it's data source and it is therefore not possible to properly marshal the data across threads.
If not, then my guess is that the exception is occurring in one of the events of the grid like InitializeLayout or InitializeRow where you are attempting to reference a column or cell that doesn't exist, yet.
Can you post the call stack of the exception?
Thanks Mike. I can't seem to repo the error right now. I will post the call stack when I'm able to.
Hello,
I am just checking about the progress of this issue. Let me know If you need nay further assistance on this issue?
Thank you for using Infragistics Components.
Just in case somebody else got the same issue, it also can happen when you don't have the right .NET version installed. In our case, we got the exception only on a fresh install of Windows 8. The same application running on Windows 7, but using the same database as a datasource didn't fail; the only difference between the environments was the .NET versions. The ones that were missing on the Windows 8 environment were .NET 3.0 and .NET 3.5. After installing those and rebooting, we solved the issue.
The version of Infragistics controls used was 10.2
Regards
This can be closed now. Thank you.