Hi Friedger:

>> is there a way to change the fields/add a field of a LocalRecordSet >> after it has been constructed?


The simple answer is no.  As stated in the documentation for LocalRecordSet:

"Note that the base LocalRecordSet provides no direct API for making dynamic changes to its fields collection. The base class also provides no API for communication with outside data sources and fixes its load-state to be RecordSetLoadState.complete."

However, note that a user is free to provide an implementation of RecordSet which does allow dynamic changes to its fields collections. The only requirement is that  it fire the appropriate RecordFieldsChangedEvents at itself, so all associated objects (RecordViews, RecordSetDisplays) can update themselves appropriately.


Hope this helps,


Lee Wexler

Reply via email to