ASP.Net 2.0
I have one FormView and two GridViews on a Wizard Step for entry of Person info, addresses and Phones Respectively. All use CslaDataSources. Address and Phone GridViews have EditTemplates to edit and Update each row - and it does not appear odd.
For the Person Info in the FormView, however, I would rather not add an Update CommandButton. It seems neater to trigger a FormView Update event when the user clicks the Next button in the Wizard.
I can't seem to find a way to do that. Would appreciate a hint or two. Thanks
Jav
Thanks Rocky. In my particular situation, I also found that FormView has both an InsertItem() method and an UpdateItem() method. Calling them raises the appropriate event.
Jav
RockfordLhotka:You don't trigger those events directly. Instead, you invalidate the controls that display the data, and those controls will ask data binding for data, and that will trigger the events on the data source control.
The same is true for inserts/updates/etc. You need to interact with the UI control to get it to trigger the desired data binding process.
FormView has InsertItem and UpdateItem methods. Calling them will trigger the corresponding events on CslaDataSource. Similarly, GridView has UpdateRow method.
Jav
Copyright (c) Marimer LLC