我將一個小數(從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時,我該怎麼做才能使它綁定?