C
Ced
Hi,
I'm using a strong typed dataset to add new records to a table but I don't
use the Fill method before because I don't want to load all these records in
memory (I only want to add some new ones) so I can't use the code below to
give a value for the primary key: dr.PRO_NUM = ds.Tables["PRO"].Rows.Count +
1;
I tried to set the primary key's field to "AutoIncrement" in the schema but
the "NewRow()" method returns "0" as value for the same reason.
Do you know any easy way to do that ?
Thanks,
Ced
I'm using a strong typed dataset to add new records to a table but I don't
use the Fill method before because I don't want to load all these records in
memory (I only want to add some new ones) so I can't use the code below to
give a value for the primary key: dr.PRO_NUM = ds.Tables["PRO"].Rows.Count +
1;
I tried to set the primary key's field to "AutoIncrement" in the schema but
the "NewRow()" method returns "0" as value for the same reason.
Do you know any easy way to do that ?
Thanks,
Ced