Link to home
Start Free TrialLog in
Avatar of TimSweet220
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.
Avatar of maralans
maralans

How are you populating your datagrid?
You can try:
DgProblems.datasource = Nothing

DgFeesOwed.datasource = Nothing

dont forget to REFRESH the datagrid
ASKER CERTIFIED SOLUTION
Avatar of Sancler
Sancler

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial