You can use an event handler to add business logic to a table: Event handlers are added to a table by using extensions. You can create a new class that extends the desired table and enables access to its fields and methods.
Change the form pattern from Details Master to Table of Contents: You cannot change the pattern of an existing form. If you need a different form pattern, you should create a new form.