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

Deleting last row in datagrid

P: n/a
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
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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
Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.