PDA

Click to See Complete Forum and Search --> : ListView Refreshing


TimC
Jun 26th, 2000, 11:35 PM
I have a MDI Form with child forms. One is a ListView that shows a query of my database, a list of customers. Another child form allows you to edit or add customers to the database. When exiting the add/edit form, I would like to have the ListView refresh the data as soon as the other form is closed. The data is being updated, because I can close the form and reopen it, and the data is updated. How do I refresh the data on the ListView or on the child form it is on? Is there a change focus property for the form or control, or can I do it in the unload command on the Add/Edit form. Rather new to this.

Thanks.

JasonGS
Jun 27th, 2000, 03:26 AM
On the customer list child, I would create a public function that refreshes the list. When you click close on the add/modify window, call frmCustomerList.UpdateData

nutstretch
Jun 29th, 2000, 04:09 AM
The only way i found to refresh the listview straight away was to clear it and re-enter the data . i am a novice to this but it worked