or
<telerik:ChartArea LegendName="CustomLegend" Name="chArea" NoDataString="Aucune données" DataContext="{Binding ElementName=brd1,Path=DataContext}"> <telerik:ChartArea.AxisX> <telerik:AxisX MajorGridLinesVisibility="Collapsed" Title="Heures" IsZeroBased="True" AutoRange="True" LabelStep="{Binding Intervalle}" /> </telerik:ChartArea.AxisX> <telerik:ChartArea.AxisY> <telerik:AxisY MajorGridLinesVisibility="Visible" MinorTicksVisibility="Visible" Title="Hits Lus" AutoScale="True" /> </telerik:ChartArea.AxisY> </telerik:ChartArea>grid.Items.AddNew() creates a new row in the grid. I would now like to assign a value to cell[0] in the new row.
grid.Items[0] does not contain a method to access the cells.
How do I get to the cells?
I know that binding the grid to a datatable will be much easier, but I was hoping to access the cells directly, without having to create a table for the data first.
Thx!
NewGoalWindow view = new NewGoalWindow(); view.WindowStartupLocation = WindowStartupLocation.CenterOwner; view.Owner = WindowHelper.MainWindow; NewGoalViewModel model = new NewGoalViewModel(); model.RequestClose += delegate{ view.Close(); }; view.DataContext = model; view.ShowDialog();<ListBox x:Name="multipleItemsPresenter" ItemsSource="{Binding}"> <ListBox.ItemTemplate> <DataTemplate> <StackPanel Orientation="Horizontal"> <telerik:RadTimePicker Width="80" SelectedTime="{Binding Path=Time, Mode=TwoWay}"/> <TextBlock Margin="20,0,0,0" Text="{Binding Path=Time, Mode=OneWay}"> </StackPanel> </DataTemplate> </ListBox.ItemTemplate></ListBox>