PC Review


Reply
Thread Tools Rate Thread

DataGridView - Custom Collection - Remove New Row from Collection

 
 
=?Utf-8?B?V2ViYmVydA==?=
Guest
Posts: n/a
 
      8th Sep 2006
I have a custom collection that implements IBindingList.
When I click/tab onto a new row, the IBindingList.AddNew() method fires and
adds a new item into the collection.

At this point, if I click/tab off of the row, the RowValidating() method
fires and I check if ( row.IsNewRow == true && row.DataBoundItem == null ).
This tells me that no data has been attempted to be filled in for the row. I
consider this valid as I want to get off of the row.

What I want to do now is remove the item from the collection.
My question is HOW? I can't seem to find a reference to the item anywhere.

Thanks,
Dave


 
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
DataGridView - custom collection object Rob Microsoft ASP .NET 0 9th Jan 2009 11:22 AM
Collection problems (create Collection object, add data to collection, bind collection to datagrid) Øyvind Isaksen Microsoft ASP .NET 1 18th May 2007 10:24 AM
Collection problems (create Collection object, add data to collection, bind collection to datagrid) Øyvind Isaksen Microsoft Dot NET 1 18th May 2007 10:24 AM
DataGridView - Custom Collection - Remove New Row =?Utf-8?B?V2ViYmVydA==?= Microsoft Dot NET Framework Forms 0 7th Sep 2006 03:12 PM
DataGridView binding problem with custom collection =?Utf-8?B?U3R1YXJ0?= Microsoft Dot NET 4 23rd Jul 2006 11:54 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:46 AM.