By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,905 Members | 1,616 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,905 IT Pros & Developers. It's quick & easy.

Datagrid - After delete row and upate got unknow error

P: n/a
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 !!
--
..
Nov 21 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Agnes,

What is "delete" in your text ?

Cor

"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 !!
--
.

Nov 21 '05 #2

P: n/a
Agnes,

What is "delete" in your text ?

Cor

"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 !!
--
.

Nov 21 '05 #3

P: n/a
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" <no************@planet.nl> 在郵件
news:uC**************@TK2MSFTNGP11.phx.gbl 中撰寫...
Agnes,

What is "delete" in your text ?

Cor

"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 !!
--
.


Nov 21 '05 #4

P: n/a
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>
....
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" <no************@planet.nl> 在郵件
news:uC**************@TK2MSFTNGP11.phx.gbl 中撰寫...
Agnes,

What is "delete" in your text ?

Cor

"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 !!
>
>
> --
> .
>
>



Nov 21 '05 #5

P: n/a
I will Try that Confirmatoin with "Delete Key " . Thanks a lot

--
..
"Cor Ligthert" <no************@planet.nl> 在郵件
news:%2****************@TK2MSFTNGP14.phx.gbl 中撰寫...
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>
...
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" <no************@planet.nl> 在郵件
news:uC**************@TK2MSFTNGP11.phx.gbl 中撰寫...
Agnes,

What is "delete" in your text ?

Cor

"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 !!
>
>
> --
> .
>
>



Nov 21 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.