0

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,

NikolaiDante
  • 18,469
  • 14
  • 77
  • 117

1 Answers1

1

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.

grover
  • 2,265
  • 1
  • 16
  • 15