R
Rbrt
I have a Formview in my application which has code to dynamically create
templates at runtime. The code is in a custom class which implements
iTemplate. In the InstantiateIn method the code is supposed to construct the
appropriate template depending on what mode the Formview control is in. By
default it starts in Readonly mode and displays a record no problem. However,
I have a button elsewhere on the form to add a new record. The button click
event has a line to put the formview into insert mode using Changemode. The
problem is that InstantiateIn only seems to get called to produce a Header
and Footer when the formview is in insert mode. It does not get called to
create anything else. The only way I can get textboxes, what have you, into
the Formview in insert mode is to put them in the header. Has anybody else
run into this problem? I am obviously missing something.
templates at runtime. The code is in a custom class which implements
iTemplate. In the InstantiateIn method the code is supposed to construct the
appropriate template depending on what mode the Formview control is in. By
default it starts in Readonly mode and displays a record no problem. However,
I have a button elsewhere on the form to add a new record. The button click
event has a line to put the formview into insert mode using Changemode. The
problem is that InstantiateIn only seems to get called to produce a Header
and Footer when the formview is in insert mode. It does not get called to
create anything else. The only way I can get textboxes, what have you, into
the Formview in insert mode is to put them in the header. Has anybody else
run into this problem? I am obviously missing something.