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

Updating from C1TrueDBGrid to database

Status
Not open for further replies.

targa72

Technical User
Mar 23, 2006
1
US
How do you update a base table after changing the contents of a cell in C1TrueDBGrid. This is only my second try at VB.NET. I’ve used TrueDBGrid in VB6 and as long as the allow updates was true the data base would update. It appears that with C1 I need to write more code for this to happen, but what? Here is the code I’ve tried in both the AfterColUpdate and AfterUpdate.

ds = New DataSet
C1TrueDBGrid1.UpdateData()
ds.Tables.Add("tblTransactions")
adp.Update(ds, "tblTransactions")

The grid is filled from two tables using SELECT with an INNER JOIN. The ‘tblTransactions’ is one of the two tables and the only one that needs updating
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top