Rattlesnake
Well-known member
- Joined
- Dec 23, 2003
- Messages
- 47
Hi
I have a master detail form (in ASP.net) that displays Purchase Order (PO) header and its details (Items).
I load a dataset with the PO detail rows of the Purchase ORder (from a SQL database) and assign it as a datasource to a datagrid.
For programming purposes (to track changes to each row) I add an Integer colum "ID" (autoincrement=true) to this Dataset AFTER I load it with the PO detail rows . (note:this column is not from the database table , but manually added )
The problem I face is that this column (ID) has NULL value for already existing rows (i.e. retrieved from the database). The field starts from 1 only for rows that are added after the page is displayed.
Is there a way to have this ID column have values for already exisitng rows plus the newly added rows.
Thanks
I have a master detail form (in ASP.net) that displays Purchase Order (PO) header and its details (Items).
I load a dataset with the PO detail rows of the Purchase ORder (from a SQL database) and assign it as a datasource to a datagrid.
For programming purposes (to track changes to each row) I add an Integer colum "ID" (autoincrement=true) to this Dataset AFTER I load it with the PO detail rows . (note:this column is not from the database table , but manually added )
The problem I face is that this column (ID) has NULL value for already existing rows (i.e. retrieved from the database). The field starts from 1 only for rows that are added after the page is displayed.
Is there a way to have this ID column have values for already exisitng rows plus the newly added rows.
Thanks