update using oracledataadapter -
I used the following lines of code to update the record on the basis of rowid: Here the dataset that I am using Dsmain ....
To AuditGrid.Rows = 2 to j - 1
If AuditGrid.ActiveCell.Row = j and AuditGrid.ActiveCell.Col = ColMark then Uvalue = trim (AuditGrid .Cell (j, colmark). text) da.UpdateCommand = New OracleCommand ( "audit audit object" and "trim (user)" & amp; "= '" & amp; trim (Uvelu) & amp; "' audit01.rowid = '' & Amp; trim (audit grid. cell (J. Colvin rod). text) & amp; " '" end If Next Dakfil (Dismian, "AUDIT0l") da. update (Dismaan " AUDIT01 ") DSMN.EXEPT CHANGE. The problem is that the database is not being updated.
I used the following lines of code and now it works perfectly fine does ...
If AuditGrid.ActiveCell.Row> 0 and
Uvalue = trim (AuditGrid.Cell (AuditGrid.ActiveCell.Row, ColMark) .text) strQry = "update audit01 user set" & amp; trim (user) & amp; "= '" & Amp; trim (Uvlu) & amp; "' where Roditocr (audit 0lkorod) = '' & amp; Audit grid Cell (audit grid. Activate rau, colvoride). Text & amp; "" Da = new OracleDataAdapter (strQry, con) da.Fill (DsMain) DsMain.AcceptChanges () Updated MsgBox ( "Record !!") AuditGrid.Range (AuditGrid.ActiveCell.Row, ColMark, AuditGrid.ActiveCell. Row, ColMark) .DeleteByRow () End if
Comments
Post a Comment