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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add blank to BOUND datagrid

Status
Not open for further replies.

xinyin

Programmer
Jan 16, 2003
81
HK
Hi all,
Can I add blank rows to a BOUND datagrid by coding? The difficult part is the datagrid is BOUND to an Access table, which one of its field is the PRIMARY KEY (does not allow null values), thus the Access table does not allow datagrid to add blank rows because this will also add records to the source data table with null primary key fields.
The purpose of adding blank rows is just to change the appearance of the grid and does nothing to the Access data table itself. Is there a way I can just add rows to the grid without adding records to the bounded table?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top