How do I clear textbox on Add NewRow?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I've this code in my add procedure.
************************************
Dim drNewRow As DataRow
drNewRow = dsMaster.Tables("Master").NewRow()
'Set all default values for diff. columns
dsMaster.Tables("Master").Rows.Add(drNewRow)
CurrMgrForm.Position = CurrMgrForm.Count - 1 '---CurrencyManager
for all the fields
*******************************************
This doesn't clear the fields. Do I have to put code to reset them?

Thanx,
Debi
 
Użytkownik "Debi said:
Hi,
I've this code in my add procedure.
************************************
Dim drNewRow As DataRow
drNewRow = dsMaster.Tables("Master").NewRow()
'Set all default values for diff. columns
dsMaster.Tables("Master").Rows.Add(drNewRow)
CurrMgrForm.Position = CurrMgrForm.Count - 1
'---CurrencyManager
for all the fields
*******************************************
This doesn't clear the fields. Do I have to put code to reset them?

Instead of your code use simply:
CurrMgrForms.AddNew()

Regards,
Grzegorz
 
Back
Top