473,396 Members | 2,018 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Datagrid - After delete row and upate got unknow error

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
5 5609
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
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
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> ¦b¶l¥ó
news:uC**************@TK2MSFTNGP11.phx.gbl ¤¤¼¶¼g...
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
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> ¦b¶l¥ó
news:uC**************@TK2MSFTNGP11.phx.gbl ¤¤¼¶¼g...
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
I will Try that Confirmatoin with "Delete Key " . Thanks a lot

--
..
"Cor Ligthert" <no************@planet.nl> ¦b¶l¥ó
news:%2****************@TK2MSFTNGP14.phx.gbl ¤¤¼¶¼g...
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> ¦b¶l¥ó
news:uC**************@TK2MSFTNGP11.phx.gbl ¤¤¼¶¼g...
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Ryan Liu | last post by:
Hi there, I got a NullReferenceException when delete last row in a datagrid. I had hard time to solve since it does not occur in my own code. I put a datagrid in my inherited user control,...
2
by: Mike P | last post by:
I have a datagrid with a 'Delete' column that the user can click on to delete a row in the datagrid. I thought that I would need to have some kind of error handling in case somebody goes into the...
1
by: Karine Proot | last post by:
Hello Today I had to build a DataGrid very dynamically <asp:datagrid id="dgTAB" Runat="server" AutoGenerateColumns="False" OnEditCommand="TAB_Edit" OnCancelCommand="TAB_Cancel"...
1
by: Rick | last post by:
Hello all, I hope all is well with you. I am having a seriously difficult time with this problem. Allow me to set up the problem. I have a System.Web.UI.Page with the following controls...
1
by: Daniel | last post by:
Hi all, I have problem in auto scroll to previous page when i try to delete the last row of the datagrid. The problem scenario is: 1.I click on next page of the datagrid. 2.I delete all the...
0
by: Agnes | last post by:
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...
4
by: drakuu | last post by:
Hello there, I have DataGrid with some records and I would like to edit it right in the datagrid using the built in commands. I can't figure out a way to pass to the SQL query the record ID...
7
by: julian.tklim | last post by:
Hi, I need to build an editable Datagrid with add & delete buttons on each row using javascript. DataGrid need not be pre-populated with values. To make the thing complicated, one of the...
10
by: amiga500 | last post by:
Hello, I have one basic simple question. When I have multiple records in the datagrid as follows: Code Product 1 Product 2 Product 3 11111 A B C...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.