Question changing the value of a calumn in a DataTable with expression

pooya1072

Well-known member
Joined
Jul 5, 2012
Messages
84
Programming Experience
Beginner
Hi friends
Is there any way (something like event) to find out changing the value of a column that expression property set for it.
 

jmcilhinney

VB.NET Forum Moderator
Staff member
Joined
Aug 17, 2004
Messages
14,148
Location
Sydney, Australia
Programming Experience
10+
I think that the ColumnChanged event of the DataTable should be your best bet. That occurs after the value has changed. If you want notification before the change is committed then handle ColumnChanging instead.
 

pooya1072

Well-known member
Joined
Jul 5, 2012
Messages
84
Programming Experience
Beginner
Thanks
I test your way just now , but ColumnChanged or ColumnChanging events don't occur when an expression set for column.
This is the list of events that I test :

1-DataTable.ColumnChanging
2-DataTable.Column changed
3-Dgv.CellValueChanged
 
Last edited:
Top Bottom