Works very well. But what I am looking for, is to load x4 of those tables in 4 columns that I have in an addon which uses xaml.
Can someone point me in the right direction on how to:
1) Define an NTGrid in my XAML addon
2) Quickly explain how to (in C#) load the ntgrid and set the .DataSource for it (I use a ObservableCollection)
I have some experience using infragistics components in NT. E.G. I use the following to load the datepicker:
Xaml:
<Page xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml' xmlns:t='clr-namespace:NinjaTrader.Gui.Tools;assembly=NinjaTrader.Gui' xmlns:system='clr-namespace:System;assembly=mscorlib' xmlns:ie='http://infragistics.com/Editors'> ... <ie:XamDateTimeEditor x:Name='datePicker' Grid.Column='1' Grid.Row='0' Width='110' Margin='0, 0, 0, 0' HorizontalAlignment='Right' VerticalAlignment='Top' VerticalContentAlignment='Center' HorizontalContentAlignment='Center' IsAlwaysInEditMode='True' Mask='{}{date}'></ie:XamDateTimeEditor>
private Infragistics.Windows.Editors.XamDateTimeEditor datePicker; ... datePicker = LogicalTreeHelper.FindLogicalNode(pageContent, "datePicker") as Infragistics.Windows.Editors.XamDateTimeEditor; datePicker.Value = DateTime.Today;
Comment