Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > About Rowstate and AutoIncrement

Reply
Thread Tools

About Rowstate and AutoIncrement

 
 
fatboycanteen
Guest
Posts: n/a
 
      12-12-2003
When I filled the db data to the dataset

eg. (id_col is autoincrement)
id_col field1
97 100
98 200
99 15
100 72
---

when I add two rows to it (newrow-> table.add)

id_col field1
97 100
98 200
99 15
100 72
101 79 <- new row
102 80 <- new row

then I delete the first row (row.deleted)

id_col field1
97 100 <- marked deleted (rowstate)
98 200
99 15
100 72
101 79
102 80

then I add one row

id_col field1
97 100 <- marked deleted (rowstate)
98 200
99 15
100 72
101 79
102 80
104 77 <- new row

The problem is that the id_col is 104, why not 103

Anyone can solve the problem. Thank You
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RowState and DataRowVersion Marc ASP .Net 1 07-23-2008 03:46 PM
GridRowCreate and GridRowBound event returns 5 on RowState. Adriano (arochax) ASP .Net 0 09-19-2006 08:19 PM
To get the total no[count] of rows in a daatable with rowstate deleted thomson ASP .Net 1 06-11-2005 02:03 PM
Autoincrement / Rowstate problems =?Utf-8?B?TmVpbA==?= ASP .Net 0 10-15-2004 11:35 AM
Re: ViewState + AutoIncrement -- Okay; Session + AutoIncrement -- Not okay Gene Gorokhovsky ASP .Net 0 07-17-2003 02:48 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57