Using datasource and adding new rows

runswithsizzors

Well-known member
Joined
May 11, 2005
Messages
70
Location
Northern Michigan
Programming Experience
5-10
My situation is I have two tabs, one is a list of lines for a project, lines are made up of units for a component.

So on the second tab is a list of units, but from this tab I need to be able to create a new line.

I use the linesdatasource.addnew, but that just enters a blank line,
is there anyway to pass data into that so the addnew isn't just a blank line?

Each line has a unit name and product ID which I have the user enter into text boxes on the units tab, then click the add button to add to the linesdatasource.

If you need more clairification let me know thanks!
 
Before you call AddNew, set the default values of the relevant columns in the line datatable
 
Back
Top