1: 2: 3: 4: 5: 6: 7: 8: 9: 10:
//this button sends data to combobox private void BtnLoad_Click_1(object sender, RoutedEventArgs e) { Statements_ARDataContext db = new Statements_ARDataContext(); var tempStatementDate = from t in db.StatementDates select new { t.PK_StatementDateID, t.InvoiceDate }; cboStatemenDate.ItemsSource = tempStatementDate.ToList(); }
1: 2: 3: 4: 5: 6:
<ComboBox x:Name="cboStatemenDate" Height="23" Width="188" Margin="0,15,232,265" HorizontalAlignment="Right" DisplayMemberPath="InvoiceDate" SelectedValuePath ="PK_StatementDateID" />