This question is locked. New answers and comments are not allowed.
I have a RadGridView, a RadDataPager and a RadNumericUpDown all defined in code.
Now i want to bind the RadDataPager.PageSize to the RadNumericUpDown.Value so the pagesize of the pager is changeable via the RadNumericUpDown control.
Thus i try:
RadDataPager dataPager = new ...;
RadNumericUpDown pageSizeSelector = new ...;
Binding b = new Binding();
b.Mode = BindingMode.TwoWay;
b.Source = pageSizeSelector.Value;
pageSizeSelector.SetBinding(dataPager.PageSize, b);
But this generates an error about the dataPager.PageSize
not being a DependencyProperty
.
I tried the other way around:
Binding b = new Binding();
b.Mode = BindingMode.TwoWay;
b.Source = dataPager.PageSize;
dataPager.SetBinding(pageSizeSelector.Value, b);
But that also generates an error about pageSizeSelector.Value
not being a DependencyProperty
.What i'm a missing? Or why aren't those DPs?
Thanks in advance!