开发者

How do I set a CoerceValueCallback for a control when it's bound to a DataView column

开发者 https://www.devze.com 2023-01-23 22:20 出处:网络
I have an application that I want to coerce a date value (call it DueDate) based on the value of another date entered by the user.Using Dependency Properties, I know how to make this work by setting t

I have an application that I want to coerce a date value (call it DueDate) based on the value of another date entered by the user. Using Dependency Properties, I know how to make this work by setting the CoerceValueCallback for the DueDate dependency property. I need to bind to a DataView, though, and the only solution I can find is not 开发者_如何学编程to use dependency properties, but to instead use DataTableEvents. Is this the right approach, or is there a better solution? Thanks.


Using DataTableEvents seems to be the best approach.

0

精彩评论

暂无评论...
验证码 换一张
取 消