By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,515 Members | 1,061 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,515 IT Pros & Developers. It's quick & easy.

Datagri "Index was outside the bounds of the array datagrid" error

P: n/a
I've a datagrid filled with a collection of objects that inherits from
basecollection.

When I remove an item from this collection and then click onto the datagrid,
I've always this error:

"Index was outside the bounds of the array datagrid"

I've tried this structure:
Dim oldList As Business.MyBaseCollection = DirectCast(dgDetails.DataSource,
Business.MyBaseCollection)

Me.BindList(Nothing, Nothing)

DirectCast(oldList, Business.MyBaseCollection).Remove(detailDeleted)

Me.BindList(oldList, Me.FatherItem)
The BindList sub set the list as datasource for the datagrid, and if the
source is not nothing assign a datagriTableStyle.

What can I do?

I've tried some refresh or update, but nothing.

thanks


Nov 20 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.