TimSweet220
asked on
Clearing Data from Datagrid
I'm using the standard Windows form menu script. (see below)
When I clear the field and run the form again, the datagrid will not populate - all other fields do.
Private Sub ClearFields()
txbAbr_Id.Text = ""
DgProblems.DataMember = ""
lblFirstName.Text = ""
lblLastName.Text = ""
txtField.Text = ""
DgFeesOwed.DataMember = ""
cboApp.Text = ""
End Sub
Any suggestions?
Thank you.
When I clear the field and run the form again, the datagrid will not populate - all other fields do.
Private Sub ClearFields()
txbAbr_Id.Text = ""
DgProblems.DataMember = ""
lblFirstName.Text = ""
lblLastName.Text = ""
txtField.Text = ""
DgFeesOwed.DataMember = ""
cboApp.Text = ""
End Sub
Any suggestions?
Thank you.
How are you populating your datagrid?
You can try:
DgProblems.datasource = Nothing
DgFeesOwed.datasource = Nothing
DgProblems.datasource = Nothing
DgFeesOwed.datasource = Nothing
dont forget to REFRESH the datagrid
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.