PC Review


Reply
Thread Tools Rate Thread

Re: Bond DataGrid Row Deletion without delete key

 
 
Jon Skeet [C# MVP]
Guest
Posts: n/a
 
      22nd May 2004
Arik Grinstein via .NET 247 <(E-Mail Removed)> wrote:
> I have the following problem. I have a DataGrid bound to a DataTable.
> I am deleting elements from the DataGrid but not by pressing the
> delete key but by selecting a row and pressing a button outside the
> grid. The deletion from the grid is no problem but how do i delete
> from the Table since the CurrentRow is no longer a valid index that i
> can use to compare in the DataTable after the first delete. can
> someone give me an idea on how can I accomplish this?


Well, the row itself should be marked as deleted, so you can just call
DataAdapter.Update(table) and the update should happen appropriately.

--
Jon Skeet - <(E-Mail Removed)>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
 
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
Bond, James Bond... Nobody in particular General Discussion 25 18th Nov 2008 11:52 AM
deletion of a row in datagrid latin & geek via DotNetMonster.com Microsoft VB .NET 5 2nd Jan 2006 10:34 AM
row deletion in datagrid agassi Microsoft ADO .NET 1 25th Jun 2004 06:56 PM
Re: Bond DataGrid Row Deletion without delete key Pete Wright Microsoft ADO .NET 0 22nd May 2004 09:46 PM
DataGrid Row Deletion mike Microsoft VB .NET 1 15th Oct 2003 10:08 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:02 PM.