PC Review


Reply
Thread Tools Rate Thread

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

 
 
Trapulo
Guest
Posts: n/a
 
      13th Jan 2004
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




 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Datagrid exception "index was outside the bounds of the array" =?Utf-8?B?Q3ltZXI=?= Microsoft Dot NET 0 24th Apr 2007 09:04 AM
"Array index out of bounds" error when deleting Shortcut Group =?Utf-8?B?QnJldHQ=?= Microsoft Outlook Discussion 1 27th Feb 2007 04:57 PM
"Array index out of bounds" error when creating shortcut to .oft =?Utf-8?B?QnJldHQ=?= Microsoft Outlook Discussion 0 27th Feb 2007 04:45 PM
Error: "Index was outside the bounds of the array" when binding the datatable with datagrid Gerry Viator Microsoft ADO .NET 1 11th Jun 2004 06:04 PM
"Array index out of bounds." error with Business Contact Manager 2003 Victor Microsoft Outlook Contacts 1 5th Dec 2003 01:58 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:12 PM.