PC Review


Reply
Thread Tools Rate Thread

DataGridView - Custom Collection - Remove New Row

 
 
=?Utf-8?B?V2ViYmVydA==?=
Guest
Posts: n/a
 
      7th 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
DataGridView - Custom Collection - Remove New Row from Collection =?Utf-8?B?V2ViYmVydA==?= Microsoft Dot NET 0 8th Sep 2006 12:09 PM
DataGridView binding problem with custom collection =?Utf-8?B?U3R1YXJ0?= Microsoft Dot NET 4 23rd Jul 2006 11:54 PM
Can't get collection to save when using collection of custom class as property of control in VS 2005 J.Edwards Microsoft Dot NET Compact Framework 0 10th Jan 2006 04:44 AM
Custom collection: how to find item in collection using custom indexer panik Microsoft C# .NET 0 21st Aug 2003 09:01 AM


Features
 

Advertising
 

Newsgroups
 


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