Deleting last row in datagrid

G

Guest

Hello,

I have a datagrid bound to a datatable which has an
Identity column. I load the table from data in a
spreadsheet and manually assign seq. values to the
identity column. Once that is done, I set the
AutoIncrement property to true and the AutoIncrementStep
property to 1. When I try to delete the last row in the
displayed grid, I get the follwoing message: "This row has
been removed from a table and does not have any data.
BeginEdit() will allow creation of new data in the row."
This appears to be an informational messages that I would
like to suppress. How can where can I trap it? (BYW the
last record is deleted.)

Suresh
 
C

Cor

Hi,

I do not know if others understand this (what you are doing) but I do not.
I load the table from data in a
spreadsheet and manually assign seq. values to the
identity column. Once that is done, I set the
AutoIncrement property to true and the AutoIncrementStep
property to 1. When I try to delete the last row in the
displayed grid,

The dataset table is a disconnected part in your program, how can you
manually assign values to the column using a spreadsheed.

There is something I can guess you did, but tell us please, before we are
only guessing?

Cor
 

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

Top