In a composite control, how can I make an event fire internally?
Ie. I populate with some data, see that it’s in the right condition (only one item) and then fire off my item selected event, calling the source page’s OnItemSelected event.
Thanks,
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Some controls implement the ISupportInitialize interface, which has the BeginInit()/EndInit() methods. If you’re doing batch updates to a control you can block events using BeginInit() and after you’re done call EndInit(). Finally you set the selected item to fire the event or invoke the event directly.