Group:  Other Microsoft Office Products ยป microsoft.public.infopath
Thread: how to change a view from a dropdown selection

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

how to change a view from a dropdown selection
iker 12.07.2006 15:11:02
Hi!

I have a problem on changing a form view from a dropdown selection using c#
code. I "know" that the only available event for that purpouse is "onClick"
event, but could anyone give me any solution please?

thanks.
Re: how to change a view from a dropdown selection
"Greg Collins [InfoPath MVP]" <gcollins_AT_msn_DOT_com> 19.07.2006 17:31:54
You need an OnAfterChange event behind the drop-down list and then code to switch the view:

XDocument.View.SwitchView(ViewName);

--
Greg Collins [Microsoft MVP]
Visit Brain Trove ( http://www.BrainTrove.com )
Visit InfoPathDev ( http://www.InfoPathDev.com )


Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net