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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top