I have a container class (designed to show biography details about a contact). There is a grid, and the click event (of the grid) has code in it to append a blank record, which works when there is no data. I have set the ColumnCount to 2.
I have subclassed the container (for creating new contact records), calling it ctrNewContact.
I have changed the RecordSource property in ctrNewContact's grid. The table in RecordSource has no records in it to start with.
I have also written new code into the click and refresh events without calling the event code in the Parent container's grid. I think this means that the code in the event should run followed, by the base class action - is that right?
When I put ctrNewContact on to a form and run the form, the grid does not react to a click on it, whereas the grid in the original container does.
Can anyone suggest where I might have gone wrong?
Thanks,
Stewart
I have subclassed the container (for creating new contact records), calling it ctrNewContact.
I have changed the RecordSource property in ctrNewContact's grid. The table in RecordSource has no records in it to start with.
I have also written new code into the click and refresh events without calling the event code in the Parent container's grid. I think this means that the code in the event should run followed, by the base class action - is that right?
When I put ctrNewContact on to a form and run the form, the grid does not react to a click on it, whereas the grid in the original container does.
Can anyone suggest where I might have gone wrong?
Thanks,
Stewart