If the above is not possible, is it possible to add System.Windows.Forms.NumericUpDown control to grid and the grid is added to NT8 chart. The System.Windows.Forms.NumericUpDown control can accept double values. I tried doing this through the following code (only included the relevant portion of code) and it ended up with the following errors:
The best overloaded method match for 'System.Windows.Controls.Grid.SetRow(System.Window s.UIElement, int)' has some invalid arguments. Argument 1: cannot convert from 'System.Windows.Forms.NumericUpDown' to 'System.Windows.UIElement'.
private System.Windows.Controls.Grid buttonGrid,
System.Windows.Forms.NumericUpDown NUD;
//private QuantityUpDown QUD;
NUD = new System.Windows.Forms.NumericUpDown();
//QUD = new QuantityUpDown();
System.Windows.Controls.Grid.SetRow(NUD, 2);
System.Windows.Controls.Grid.SetColumn(NUD, 2);
buttonGrid.Children.Add(NUD);
//System.Windows.Controls.Grid.SetRow(QUD, 2);
//System.Windows.Controls.Grid.SetColumn(QUD, 2);
//buttonGrid.Children.Add(QUD);
The same code works well when used with QuantityUpDown (QUD). The end objective is a Numerical control on NT8 chart that has UpDown arrows and can accept double/decimal values. Seek an expert's advice to get out of this problem. Thanks.
Comment