Datagrid - After delete row and upate got unknow error

  • Thread starter Thread starter Agnes
  • Start date Start date
A

Agnes

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 !!
 
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 said:
Agnes,

What is "delete" in your text ?

Cor

"Agnes"
 
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 said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top