hi,
i have a problem in my ultragrid.when i update the data displayed in the grid so fast it throw unhandled index out of range exception i don't know where the exception fire note that i am using debug mode but the exception doesn't fire in the debug mode and when this happen i can't create a new object of the grid cuz it throw exception in InitializeComponent().
any ideas
Hi,
If you set the Visual Studio IDE to break on all run-time exceptions, you should be able to track exactly where the exception is occuring inside InitializeComponent.
My guess is that the exception you describe is occurring in an event handler for one of the grid's events like InitializeRow or InitializeLayout.
An Index of out Range exception indicates that something in the code is trying to reference an item in a collection using an index or a key that does exist. This very commonly occurs in the events I mentioned above when your code references a column or a cell before it is created. So it's often a good idea to use the collection's Exists method to check that the key you are referencing exists before you try to access it.