A
Agnes
Old problem but still not solve. I got a delete button, to delete the
detail in datagrid, my datagrid is bind to stddtChg
After dsInvInfo.updatE(strTdChg) , it did nothing, all the record still in
Database. Please help
Dim cm As CurrencyManager = Me.BindingContext(dsInvInfo,
strdtChg)
cm.EndCurrentEdit()
If cm.Count <= 0 Then
Exit Function
Else
For i = 1 To cm.Count
If cm.Count > 0 Then
'cm.RemoveAt(0)
dsInvInfo.Tables(Me.strdtChg).DefaultView(0).Delete()
End If
Next
End If
detail in datagrid, my datagrid is bind to stddtChg
After dsInvInfo.updatE(strTdChg) , it did nothing, all the record still in
Database. Please help
Dim cm As CurrencyManager = Me.BindingContext(dsInvInfo,
strdtChg)
cm.EndCurrentEdit()
If cm.Count <= 0 Then
Exit Function
Else
For i = 1 To cm.Count
If cm.Count > 0 Then
'cm.RemoveAt(0)
dsInvInfo.Tables(Me.strdtChg).DefaultView(0).Delete()
End If
Next
End If