Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Datagrid - After delete row and upate got unknow error

24 views
Skip to first unread message

Agnes

unread,
Dec 7, 2004, 11:27:56 PM12/7/04
to
I an addnew and modify all the rows in my Datagrid .
However , If i highlight the whole rows , press 'delete' and the process
daInv.update(dsInv,"mytable)
I got the following error
"This row has been removed from a table and does not have any
data.BeginEdit() will allow creation of new data in this row.

Please help !!


--
.


Cor Ligthert

unread,
Dec 8, 2004, 4:25:27 AM12/8/04
to
Agnes,

What is "delete" in your text ?

Cor

"Agnes"

Agnes

unread,
Dec 8, 2004, 8:04:21 AM12/8/04
to
User can use mouse and highlight the whole row in datagrid, 'press' Delete
button (the delete button in keyboard),
And User need to press 'Save & Exit' button, <-- in that button, I will run
daInv.update(dsInv,"mytable)

Finally, got such error.
--
.
"Cor Ligthert" <notmyfi...@planet.nl> 在郵件
news:uCI1geQ3...@TK2MSFTNGP11.phx.gbl 中撰寫...

Cor Ligthert

unread,
Dec 8, 2004, 8:18:20 AM12/8/04
to
Agnes,

As far as I know is this not a delete, however a remove. Therefore the row
is removed from the datatable, while a delete just set the rowstate to
delete and removes that with the acceptchanges done in the dataadapter.

In my opinion is the best thing you can do is to disable that behaviour of
that deletekey .

http://64.78.52.104/FAQ/WinForms/search/889.asp

I hope this helps,

Cor


"Agnes" <ag...@dynamictech.com.hk>
...

Agnes

unread,
Dec 8, 2004, 8:41:21 AM12/8/04
to
I will Try that Confirmatoin with "Delete Key " . Thanks a lot

--
.
"Cor Ligthert" <notmyfi...@planet.nl> 在郵件

news:%23yjbpgS...@TK2MSFTNGP14.phx.gbl 中撰寫...

0 new messages