automatically add a record with binding navigator
Posted on 2006-05-12
i have a form which has a binding navigator. when the form loads, i still have to click on the ADD RECORD button to start it off. i would like to have it add automatically on form load event.
also, there is a textbox bound to the dataset, e.g. column CustomerID. i need to set this textbox to a number everytime i add a new record. the number could be a GUID, or anything unique, but i need to add a different one for every record that i add. where should i put the code to to that?
both questions relate to each other somehow (the adding of records part).