views:

245

answers:

2

I have a row in excel I'd like to translate into an ObserveableCollection in C# for binding/event purposes, so all accessor classes know they're getting the latest data from the source excel sheet. How would this be done?

Clarification: I'm using an excel add-in project, not a workbook project, so am not sure whether or not XMLMappedRange Controls are an option.

A: 

You can add OnChanged in your range changed event.

PerlDev
I'm sorry but could you be a bit more specific? I'm using an add-in, not a Workbook project. What assembly would I access the range changed event through?
Daniel Harvey
I see Microsoft.Office.Interop.Excel.DocEvents_ChangeEventHandler but am not sure if that's what you meant since it seems like it's a document-level handler and not a range-level.
Daniel Harvey
+2  A: 
Mike Rosenblum
You're the man Mike! Thanks so much!
Daniel Harvey
No problem, glad it helped, Daniel. :-)
Mike Rosenblum