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

datagrid-autoincrement problem

P: n/a
I got master-detail relationship grid. in my detail grid, i set the column
..autoincrement.
that grid contains serveral column.1st column is description.
1)the user input 2rows. and then press' enter' in 3rd rows. as the user want
to modify the 1st row.
the user use upper arrow to move up.
Now, after modification, the user press 'enter' to move foward 2nd rows. and
3rdrow.
The problem is the 3rd row 's seqno should be 30. but it changed into "40"
if i didn't input anything, move the cursor to 2nd row, then move back to
3rd row.
now, the seqno is "50". How come ?????

Another serious problem is about primary key . the user will input many
description into detail grid,
How can i set the primiary key in the detail grid ??
Do i need to "generate the key" during "column changed" ?
--------------------------
dtMarking.Columns("seqno").AutoIncrement = True
dtMarking.Columns("seqno").AutoIncrementSeed = 10
dtMarking.Columns("seqno").AutoIncrementStep = 10

thanks in advance
Nov 20 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.