Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DataGrid--Addnewrow

Status
Not open for further replies.

john55

Programmer
Oct 10, 2001
5
US
the problem is; i'm trying to find a way to add the Addnew row to a datagrid as soon as my users complete the contents of at least one cell in the CURRENT addnew row. i've learned to do this by a combination of 'enter'key and arrow/up keys, but i can't expect my users to know this.

it is even more vague when the datagrid has an empty recordset, as in say a customers/Orders form where the datagrid represents the line item orders for the customer. now imagine if you will that the customer is new or hasn't made any orders yet. the datagrid recordset obviously only contains the AddNew row. so my user fills in this single row and then how does s/he add another row (i.e. w/o using the keystrokes i've mentioned above). I don't want to use a recordset update because i'm using 'batch' updating.

i've also tried a Recordset.additem w/ the IF condition of 'addnewmode=addnewpending' however this fires whatever method that is used to add a new row TWICE.

THANKS FOR THE HELP
JOHN
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top