473,503 Members | 1,671 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5612
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
5020
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
300
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
1576
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
4278
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
1292
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
371
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
9683
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
3189
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
2931
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
7202
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
7086
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
6991
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7462
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5014
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4673
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1512
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
382
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.