Advertisement
Advertisement
| 03.17.2008 at 08:42AM PDT, ID: 23247369 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: |
// acquire data and bind it to XCEED datagrid (WORKING)
chequeService = new ChequeService();
BindingList<Cheque> chequeList = new BindingList<Cheque>(chequeService.GetEntityList());
DataGridCollectionView dataGridCollectionView = new DataGridCollectionView(chequeList);
dgvProducts.ItemsSource = dataGridCollectionView;
//XAML databinding to a textbox(WORKING) I need equivalent C# code for this XAML.
<Grid DataContext="{Binding ElementName=dgvProducts, Path=SelectedItem}" HorizontalAlignment="Right" Margin="0,30,29,0" Name="grid1" Width="233" Height="95" VerticalAlignment="Top">
<TextBox Text="{Binding Path=ChequeID}" Height="22" Margin="0,12,36,0" Name="textBox1" VerticalAlignment="Top" HorizontalAlignment="Right" Width="91" />
</Grid>
|