我将一个小数(从NHibernate实体)绑定到NumericUpDown。将Decimal与NumericUpDown绑定为0而不是0
_numUpDown.DataBindings.Add(
New Binding(
"Value",
_BindingSource,
"TheDecimal",
False,
DataSourceUpdateMode.OnPropertyChanged
)
)
这工作正常。但是,当我将NumericUpDown的最小值从0更改为.01时,出现错误。
来自设计师;
Me._numUpDown.Minimum = New Decimal(New Integer() {1, 0, 0, 131072})
错误;
1) System.InvalidOperationException
---------------------------------------
Message: DataBinding cannot find a row in the list that is suitable for all bindings.
Target: Void FindGoodRow()
Source: System.Windows.Forms
当最小值不是0时,我该怎么做才能使它绑定?