当数据绑定在自定义的属性(Value)时,在控件失去焦点后,会触发datatable的columnchanged事件。
但当数据绑定在继承的属性(Text)时,又不会触发。望高手指教,怎样可以使当绑定在Value时失去焦点不触发columnchanged事件。 public partial class UserControl2 : System.Windows.Forms.TextBox
{
public UserControl2()
{
InitializeComponent();
}
private string m_Value;
[Bindable(true)]
public string Value
{
get
{
return m_Value;
}
set
{
m_Value = value;
}
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货