ListObject datasource doesn't show updated values in change event.

Suresh3594

New Member
Joined
Jul 5, 2017
Messages
7
[FONT=&quot]Hi,[/FONT]
[FONT=&quot]I am working with Excel tables in vsto addin. Following is the steps that I am following to create a table using VSTO.[/FONT]
[FONT=&quot]Create listObject-> Get data from server -> Bind data retrieved from server to listObject.[/FONT]
[FONT=&quot]I can see the table getting created in worksheet. Now the problem is edit. I am using Worksheet.Change event to capture edit on table. The issue I am facing here is, when the control reaches WorkSheet change event, List object data source shows old value, i.e value before edit. But I want to see the updated value in change event. Is there anything that I am missing here?

PS : When I edit for second time, ListObject shows values that was edited for the first time.[/FONT]
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
I haven't done any work with the ListObject control, but on MSDN it shows there is a ListObject Change() event (or possibly ListObject DataSourceChanged() event) which you could use instead?
 
Last edited:
Upvote 0
DataSourceChanged event is raised when data source is changed, not when contents of data source is modified.
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,313
Members
452,634
Latest member
cpostell

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top