<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="http://code.msdn.microsoft.com/rss.xsl"?><rss version="2.0"><channel><title>wpfdatavideos Forum Rss Feed</title><link>http://code.msdn.microsoft.com/wpfdatavideos/Thread/List.aspx</link><description>wpfdatavideos Forum Rss Description</description><item><title>NEW POST: Wpf </title><link>http://code.msdn.microsoft.com/wpfdatavideos/Thread/View.aspx?ThreadId=2330</link><description>&lt;div class="wikidoc"&gt;
Hi,&lt;br /&gt;try this process, it might work:&lt;br /&gt;When you are in the Form1's code behind, Write this:&lt;br /&gt; &lt;br /&gt;Dim Win2 As New Window2()&lt;br /&gt;Me.Hide()&lt;br /&gt;Win2.Show()&lt;br /&gt; &lt;br /&gt;And that's all!&lt;br /&gt;;o))&lt;br /&gt;
&lt;/div&gt;</description><author>deWouters</author><pubDate>Mon, 12 Oct 2009 15:51:52 GMT</pubDate><guid isPermaLink="false">NEW POST: Wpf  20091012P</guid></item><item><title>NEW POST: Wpf </title><link>http://code.msdn.microsoft.com/wpfdatavideos/Thread/View.aspx?ThreadId=2330</link><description>&lt;div class="wikidoc"&gt;
Hello,&lt;br /&gt;i am new to wpf i created a couple of windows, i want to close the one when i open the other vb code doesnt seem to work.&lt;br /&gt;when i say &lt;br /&gt; &lt;br /&gt;me.close() &lt;br /&gt;Dim win2 as new window2&lt;br /&gt;win2.show()&lt;br /&gt; &lt;br /&gt;when the above is used individually  it works but when both are put together there is no error but even the window exits.&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;
&lt;/div&gt;</description><author>GopalKrishna</author><pubDate>Mon, 28 Sep 2009 13:47:27 GMT</pubDate><guid isPermaLink="false">NEW POST: Wpf  20090928P</guid></item><item><title>NEW POST: Filtering Details View</title><link>http://code.msdn.microsoft.com/wpfdatavideos/Thread/View.aspx?ThreadId=2251</link><description>&lt;div class="wikidoc"&gt;
Hello,&lt;br /&gt; &lt;br /&gt;After watching the video #5 How Do I: Build a WPF Master-Detail Data Entry Form Using Entity Framework? I'm trying to filter the detail view. Instead of filtering details in the LINQ to Entities expression and firing another DB query, I would like to filter it using the ListCollectionView Filter event or some other approach. However, as you can see in the video, the details view bind to a BindingListCollectionView, witch does not support filtering.&lt;br /&gt; &lt;br /&gt;How could I perform a filtering on the details view?&lt;br /&gt; &lt;br /&gt;Thanks in Advance,&lt;br /&gt; &lt;br /&gt;Igor&lt;br /&gt;
&lt;/div&gt;</description><author>ikondrasovas</author><pubDate>Wed, 09 Sep 2009 12:43:01 GMT</pubDate><guid isPermaLink="false">NEW POST: Filtering Details View 20090909P</guid></item><item><title>NEW POST: Any Questions?</title><link>http://code.msdn.microsoft.com/wpfdatavideos/Thread/View.aspx?ThreadId=496</link><description>&lt;div class="wikidoc"&gt;
&lt;div class="quote"&gt;
 &lt;br /&gt;BethMassi wrote:&lt;br /&gt;Any questions?&lt;br /&gt; &lt;br /&gt;
&lt;/div&gt; &lt;br /&gt;Hi Beth,&lt;br /&gt; &lt;br /&gt;I am new to WPF and and have been following your &amp;quot;WPF Forms over data videos&amp;quot; and comfortable with the process of building database apps according to the procedure you have explained. Now I find this new category &amp;quot;WPF Forms with Entity Framework Video Series&amp;quot;. Please advise when to use the entity framework and benefits in this method. Thanks.&lt;br /&gt;
&lt;/div&gt;</description><author>Shiv</author><pubDate>Fri, 04 Sep 2009 02:48:11 GMT</pubDate><guid isPermaLink="false">NEW POST: Any Questions? 20090904A</guid></item><item><title>NEW POST: Any Questions?</title><link>http://code.msdn.microsoft.com/wpfdatavideos/Thread/View.aspx?ThreadId=496</link><description>&lt;div class="wikidoc"&gt;
Hi StatWC,&lt;br /&gt; &lt;br /&gt;It would depend on how you are accessing your database. But ff you are using TableAdapters you just need to create a parameterized query like I explained to MarkvL above. &lt;br /&gt; &lt;br /&gt;HTH,&lt;br /&gt;-B&lt;br /&gt;
&lt;/div&gt;</description><author>BethMassi</author><pubDate>Thu, 02 Jul 2009 00:54:20 GMT</pubDate><guid isPermaLink="false">NEW POST: Any Questions? 20090702A</guid></item><item><title>NEW POST: Any Questions?</title><link>http://code.msdn.microsoft.com/wpfdatavideos/Thread/View.aspx?ThreadId=496</link><description>&lt;div class="wikidoc"&gt;
Hi FrankTL,&lt;br /&gt; &lt;br /&gt;I can't really tell what's wrong from that code. Are you able to step into the click handlers for the buttons? When you click Save does HasChanges return True?&lt;br /&gt; &lt;br /&gt;-B&lt;br /&gt;
&lt;/div&gt;</description><author>BethMassi</author><pubDate>Thu, 02 Jul 2009 00:48:12 GMT</pubDate><guid isPermaLink="false">NEW POST: Any Questions? 20090702A</guid></item><item><title>NEW POST: Sample database not referenced ?</title><link>http://code.msdn.microsoft.com/wpfdatavideos/Thread/View.aspx?ThreadId=1842</link><description>&lt;div class="wikidoc"&gt;
Hi dibblm,&lt;br /&gt; &lt;br /&gt;All the videos are here: http://msdn.microsoft.com/en-us/vbasic/bb466226.aspx&lt;br /&gt; &lt;br /&gt;Here's the one where we created the database: http://msdn.microsoft.com/en-us/vbasic/bb643825.aspx&lt;br /&gt; &lt;br /&gt;HTH,&lt;br /&gt;-Beth&lt;br /&gt;
&lt;/div&gt;</description><author>BethMassi</author><pubDate>Thu, 25 Jun 2009 22:00:03 GMT</pubDate><guid isPermaLink="false">NEW POST: Sample database not referenced ? 20090625P</guid></item><item><title>NEW POST: Sample database not referenced ?</title><link>http://code.msdn.microsoft.com/wpfdatavideos/Thread/View.aspx?ThreadId=1842</link><description>&lt;div class="wikidoc"&gt;
found the data in the sample. However I still don't know what video you were refferencing in this video where you stated the datbase was created in the previous video ?&lt;br /&gt;
&lt;/div&gt;</description><author>dibblm</author><pubDate>Fri, 05 Jun 2009 14:13:54 GMT</pubDate><guid isPermaLink="false">NEW POST: Sample database not referenced ? 20090605P</guid></item><item><title>NEW POST: Sample database not referenced ?</title><link>http://code.msdn.microsoft.com/wpfdatavideos/Thread/View.aspx?ThreadId=1842</link><description>&lt;div class="wikidoc"&gt;
 In the video you mention the database was done in a previous video.  However I dont find any mention to either which video was used or a sample for the layout. &lt;br /&gt; &lt;br /&gt; Can you reference the video you were reffering to please or include the layout ?&lt;br /&gt;
&lt;/div&gt;</description><author>dibblm</author><pubDate>Fri, 05 Jun 2009 14:11:41 GMT</pubDate><guid isPermaLink="false">NEW POST: Sample database not referenced ? 20090605P</guid></item><item><title>NEW POST: Any Questions?</title><link>http://code.msdn.microsoft.com/wpfdatavideos/Thread/View.aspx?ThreadId=496</link><description>&lt;div class="wikidoc"&gt;
Beth,&lt;br /&gt; &lt;br /&gt;I had a question on a search function myself. I use C#. I want to have a text box that I type in a name or a number such as a license plate number and have it search all the entries in my database when I click the Search button based on the query I created. any help you can provied would be greatly appreciated!&lt;br /&gt;
&lt;/div&gt;</description><author>StatWC</author><pubDate>Fri, 08 May 2009 17:05:55 GMT</pubDate><guid isPermaLink="false">NEW POST: Any Questions? 20090508P</guid></item><item><title>NEW POST: Any Questions?</title><link>http://code.msdn.microsoft.com/wpfdatavideos/Thread/View.aspx?ThreadId=496</link><description>&lt;div class="wikidoc"&gt;
Beth,&lt;br /&gt; &lt;br /&gt;   First let me thank you for this fantastic series and all the hard work you've put into it. I've been a COBOL programmer for over a decade, and am now expanding into the OO programming world. I jumpstarted right into the &amp;quot;WPF Data Entry&amp;quot; project, and I've been trying to modify the code to accommodate a local database I created. It's a simple contact database, with ID (primary key/identifier) FirstName, LastName, email, and Phone. While I was able to get the window created and the code converted to the point it builds without error, unfortunately none of the buttons seem to work - that is, none of the data updates as far as I can tell. I can input the data, but nothing gets done with it. Below is my code from Window1.xaml.cs (yes, using C# here as I am more familiar with it than VB), and I was hoping you could see what it is that I am doing wrong, and what is preventing my table from updating. Thanks in advance for your (or anyone else's) help!&lt;br /&gt;***************************&lt;br /&gt;using System;&lt;br /&gt;using System.Collections.Generic;&lt;br /&gt;using System.Linq;&lt;br /&gt;using System.Text;&lt;br /&gt;using System.Windows;&lt;br /&gt;using System.Windows.Controls;&lt;br /&gt;using System.Windows.Data;&lt;br /&gt;using System.Windows.Documents;&lt;br /&gt;using System.Windows.Input;&lt;br /&gt;using System.Windows.Media;&lt;br /&gt;using System.Windows.Media.Imaging;&lt;br /&gt;using System.Windows.Navigation;&lt;br /&gt;using System.Windows.Shapes;&lt;br /&gt; &lt;br /&gt;namespace WpfDataEntry&lt;br /&gt;{&lt;br /&gt;    /// &amp;lt;summary&amp;gt;&lt;br /&gt;    /// Interaction logic for Window1.xaml&lt;br /&gt;    /// &amp;lt;/summary&amp;gt;&lt;br /&gt;    public partial class Window1 : Window&lt;br /&gt;    {&lt;br /&gt;        public Window1()&lt;br /&gt;        {&lt;br /&gt;            InitializeComponent();&lt;br /&gt;        }&lt;br /&gt; &lt;br /&gt;        private Contacts3DataSet ContactData = new Contacts3DataSet();&lt;br /&gt;        private Contacts3DataSetTableAdapters.ContactsTableTableAdapter taCust = new Contacts3DataSetTableAdapters.ContactsTableTableAdapter();&lt;br /&gt;        private Contacts3DataSetTableAdapters.TableAdapterManager taManager = new Contacts3DataSetTableAdapters.TableAdapterManager(); &lt;br /&gt;        private CollectionView View;&lt;br /&gt; &lt;br /&gt;        private void Window1_Loaded(object sender, System.Windows.RoutedEventArgs e)&lt;br /&gt;        {&lt;br /&gt;            this.taCust.Fill(this.ContactData.ContactsTable);&lt;br /&gt;            this.taManager.ContactsTableTableAdapter = taCust;&lt;br /&gt;            this.DataContext = this.ContactData.ContactsTable;&lt;br /&gt;            this.View = (CollectionView) (CollectionViewSource.GetDefaultView(this.ContactData.ContactsTable));&lt;br /&gt;        }&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt;        private void btnFirst_Click(object sender, System.Windows.RoutedEventArgs e)&lt;br /&gt;        {&lt;br /&gt;            this.View.MoveCurrentToFirst();&lt;br /&gt;        }&lt;br /&gt; &lt;br /&gt;        private void btnPrevious_Click(object sender, System.Windows.RoutedEventArgs e)&lt;br /&gt;        {&lt;br /&gt;            if ((this.View.CurrentPosition &amp;gt; 0))&lt;br /&gt;            {&lt;br /&gt;                this.View.MoveCurrentToPrevious();&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt; &lt;br /&gt;        private void btnNext_Click(object sender, System.Windows.RoutedEventArgs e)&lt;br /&gt;        {&lt;br /&gt;            if ((this.View.CurrentPosition &amp;lt; (this.View.Count - 1)))&lt;br /&gt;            {&lt;br /&gt;                this.View.MoveCurrentToNext();&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt; &lt;br /&gt;        private void btnLast_Click(object sender, System.Windows.RoutedEventArgs e)&lt;br /&gt;        {&lt;br /&gt;            this.View.MoveCurrentToLast();&lt;br /&gt;        }&lt;br /&gt; &lt;br /&gt;                private void btnDelete_Click(object sender, System.Windows.RoutedEventArgs e)&lt;br /&gt;        {&lt;br /&gt;            if ((this.View.CurrentPosition &amp;gt; -1))&lt;br /&gt;            {&lt;br /&gt;                var row = ((System.Data.DataRowView)(this.View.CurrentItem)).Row;&lt;br /&gt;                row.Delete();&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt; &lt;br /&gt;        private void btnAdd_Click(object sender, System.Windows.RoutedEventArgs e)&lt;br /&gt;        {&lt;br /&gt;            //var row = this.ContactData.Customer.NewCustomerRow();&lt;br /&gt; &lt;br /&gt;            var row = this.ContactData.ContactsTable.NewContactsTableRow();&lt;br /&gt;            row.LastName = &amp;quot;&lt;a href="http://code.msdn.microsoft.com/wpfdatavideos/Wiki/View.aspx?title=New"&gt;New&lt;/a&gt;&amp;quot;;&lt;br /&gt;            //this.ContactData.Customer.AddCustomerRow(row);&lt;br /&gt;            this.ContactData.ContactsTable.AddContactsTableRow(row);&lt;br /&gt;            this.View.MoveCurrentToLast();&lt;br /&gt;        }&lt;br /&gt;        private void btnRevert_Click(object sender, System.Windows.RoutedEventArgs e)&lt;br /&gt;        {&lt;br /&gt;            //if (this.CustomerData.HasChanges())&lt;br /&gt;           if (this.ContactData.HasChanges())&lt;br /&gt;            {&lt;br /&gt;                if ((MessageBox.Show(&amp;quot;Are you sure you want to lose all your changes?&amp;quot;, this.Title, MessageBoxButton.YesNo) == MessageBoxResult.Yes))&lt;br /&gt;                {&lt;br /&gt;                    //this.CustomerData.RejectChanges();&lt;br /&gt;                    this.ContactData.RejectChanges();&lt;br /&gt;                }&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;        private void btnSave_Click(object sender, System.Windows.RoutedEventArgs e)&lt;br /&gt;        {&lt;br /&gt;            try&lt;br /&gt;            {&lt;br /&gt; //               if (this.CustomerData.HasChanges())&lt;br /&gt;                if (this.ContactData.HasChanges())&lt;br /&gt;                {&lt;br /&gt;                    //if ((this.taManager.UpdateAll(this.CustomerData) &amp;gt; 0))&lt;br /&gt;                    if ((this.taManager.UpdateAll(this.ContactData) &amp;gt; 0))&lt;br /&gt;                    {&lt;br /&gt;                        MessageBox.Show(&amp;quot;Saved.&amp;quot;);&lt;br /&gt;                    }&lt;br /&gt;                }&lt;br /&gt;            }&lt;br /&gt;            catch (Exception ex)&lt;br /&gt;            {&lt;br /&gt;                MessageBox.Show(ex.ToString());&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;
&lt;/div&gt;</description><author>FrankTL</author><pubDate>Fri, 13 Feb 2009 21:31:29 GMT</pubDate><guid isPermaLink="false">NEW POST: Any Questions? 20090213P</guid></item><item><title>NEW POST: Any Questions?</title><link>http://code.msdn.microsoft.com/wpfdatavideos/Thread/View.aspx?ThreadId=496</link><description>&lt;div class="wikidoc"&gt;
Hey Beth:&lt;br /&gt;I m Atif a newly entered in the .NET world....&lt;br /&gt;I have seen your Videos and it helped me alot for learning this leveraging technology&lt;br /&gt; &lt;br /&gt;Thanksss Alot for making such a nice series.&lt;br /&gt;Keeep doing that.....&lt;br /&gt;
&lt;/div&gt;</description><author>AtifAli</author><pubDate>Tue, 21 Oct 2008 11:38:55 GMT</pubDate><guid isPermaLink="false">NEW POST: Any Questions? 20081021A</guid></item><item><title>NEW POST: Any Questions?</title><link>http://code.msdn.microsoft.com/wpfdatavideos/Thread/View.aspx?ThreadId=496</link><description>&lt;div class="wikidoc"&gt;
Mark,&lt;br /&gt; &lt;br /&gt;You need to pass the parameter to the &lt;b&gt;parameter&lt;/b&gt;ized query ;-). Based on the number of parameters you are using in your SQL Server query, the desigenr creates a method with those number of parameters. You need to pass the values for it to work. Your errors are basic syntax errors that any method would raise if you were calling it incorrectly. Look at the intellisense for your method and it will guide you.&lt;br /&gt; &lt;br /&gt;Me.taCust.FillByName(Me.CustomerData.Table1, &amp;quot;&lt;b&gt;***PASS VALUE HERE****&lt;/b&gt;&amp;quot;)&lt;br /&gt; &lt;br /&gt;You should definitely read through the Getting Started and How To sections of the Library.&lt;br /&gt;http://msdn.microsoft.com/en-us/vbasic/ms789093.aspx#Articles &lt;br /&gt; &lt;br /&gt;HTH,&lt;br /&gt;-B&lt;br /&gt;
&lt;/div&gt;</description><author>BethMassi</author><pubDate>Wed, 27 Aug 2008 18:06:31 GMT</pubDate><guid isPermaLink="false">NEW POST: Any Questions? 20080827P</guid></item><item><title>NEW POST: Any Questions?</title><link>http://code.msdn.microsoft.com/wpfdatavideos/Thread/View.aspx?ThreadId=496</link><description>&lt;div class="wikidoc"&gt;
Well i did what you told me to do.&lt;br /&gt;I created (once again) a new Query. Called it &amp;quot;FillByNaam&amp;quot;. Yet now i only get funky errors like:&lt;br /&gt;Error	1	Argument not specified for parameter 'naam' of 'Public Overridable Overloads Function FillByNaam(dataTable As DataSet1.Table1DataTable, naam As String) As Integer'.	C:\Users\ZeroSlasher\Documents\Visual Studio 2008\Projects\WpfApplication1\WpfApplication1\Window1.xaml.vb	84	22	Ebike&lt;br /&gt; &lt;br /&gt;And&lt;br /&gt; &lt;br /&gt;Error	2	Value of type 'String' cannot be converted to 'WpfApplication1.DataSet1.Table1DataTable'.	C:\Users\ZeroSlasher\Documents\Visual Studio 2008\Projects\WpfApplication1\WpfApplication1\Window1.xaml.vb	84	43	Ebike&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;Why are Search functions so difficult &lt;b&gt;*pffffffff*&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;</description><author>MarkvL</author><pubDate>Wed, 27 Aug 2008 14:51:34 GMT</pubDate><guid isPermaLink="false">NEW POST: Any Questions? 20080827P</guid></item><item><title>NEW POST: Any Questions?</title><link>http://code.msdn.microsoft.com/wpfdatavideos/Thread/View.aspx?ThreadId=496</link><description>&lt;div class="wikidoc"&gt;
Hi Mark,&lt;br /&gt; &lt;br /&gt;I don't see where you are calling your parameterized query, it looks like you are sill calling Fill without any parameters. i.e. I still see:&lt;br /&gt; &lt;br /&gt;Me.taCust.Fill(Me.CustomerData.Table1)&lt;br /&gt;Me.DataContext = Me.CustomerData.Table1&lt;br /&gt; &lt;br /&gt;To call the query you set up on the TableAdapter you call it by the name you specified in the query designer and then pass the parameter to it. Something like:&lt;br /&gt; &lt;br /&gt;Me.taCust.FillByName(Me.CustomerData.Table1, &amp;quot;Some Name&amp;quot;)&lt;br /&gt;Me.DataContext = Me.CustomerData.Table1&lt;br /&gt; &lt;br /&gt;HTH,&lt;br /&gt;-Beth&lt;br /&gt;
&lt;/div&gt;</description><author>BethMassi</author><pubDate>Tue, 26 Aug 2008 23:39:36 GMT</pubDate><guid isPermaLink="false">NEW POST: Any Questions? 20080826P</guid></item><item><title>NEW POST: Any Questions?</title><link>http://code.msdn.microsoft.com/wpfdatavideos/Thread/View.aspx?ThreadId=496</link><description>&lt;div class="wikidoc"&gt;
Hiya, been busy for a long time. Anyway in the meantime i have looked around, see what i've done wrong.&lt;br /&gt;I'm frankly stucked a lot. Also i'm so new to all of this that i can't seem to figure out what it is that i'm doing wrong.&lt;br /&gt;All i get now is Integer errors (mostly) and when i don't have any errors, it just isn't showing any results at all.&lt;br /&gt;I'm not sure what to think more, it's slightly annoying that i can't even find the solution.&lt;br /&gt;So...  here is the entire code instead. I might be doing something wrong at the top or i'm just messing things up a lot.&lt;br /&gt;What i have so far, is a Query named Search in Table1, that has the function &amp;quot;WHERE naam = @naam&amp;quot; .. i have to figure out how to add more cause it also has to look for address and zipcode and all.&lt;br /&gt;Hopefully you can help me =)&lt;br /&gt;(My apologies for the huge post)&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;Class Window1 &lt;br /&gt; &lt;br /&gt;    Private CustomerData As New DataSet1&lt;br /&gt;    Private taCust As New DataSet1TableAdapters.Table1TableAdapter&lt;br /&gt;    Private taManager As New DataSet1TableAdapters.TableAdapterManager&lt;br /&gt;    Private View As CollectionView&lt;br /&gt; &lt;br /&gt;    Private Sub Window1_Loaded(ByVal sender As Object, ByVal e As System.Windows.RoutedEventArgs) Handles Me.Loaded&lt;br /&gt;        Me.taCust.Fill(Me.CustomerData.Table1)&lt;br /&gt; &lt;br /&gt;        Me.taManager.Table1TableAdapter = taCust&lt;br /&gt; &lt;br /&gt;        Me.DataContext = Me.CustomerData.Table1&lt;br /&gt; &lt;br /&gt;        Me.View = CollectionViewSource.GetDefaultView(Me.CustomerData.Table1)&lt;br /&gt; &lt;br /&gt;    End Sub&lt;br /&gt; &lt;br /&gt;    Private Sub btnFirst_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles btnFirst.Click&lt;br /&gt;        Me.View.MoveCurrentToFirst()&lt;br /&gt;    End Sub&lt;br /&gt; &lt;br /&gt;    Private Sub btnPrevious_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles btnPrevious.Click&lt;br /&gt;        If Me.View.CurrentPosition &amp;gt; 0 Then&lt;br /&gt;            Me.View.MoveCurrentToPrevious()&lt;br /&gt;        End If&lt;br /&gt;    End Sub&lt;br /&gt; &lt;br /&gt;    Private Sub btnNext_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles btnNext.Click&lt;br /&gt;        If Me.View.CurrentPosition &amp;lt; Me.View.Count - 1 Then&lt;br /&gt;            Me.View.MoveCurrentToNext()&lt;br /&gt;        End If&lt;br /&gt;    End Sub&lt;br /&gt; &lt;br /&gt;    Private Sub btnDelete_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles btnDelete.Click&lt;br /&gt;        If Me.View.CurrentPosition &amp;gt; -1 Then&lt;br /&gt;            If MessageBox.Show(&amp;quot;Weet je zeker dat je het wilt verwijderen?&amp;quot;, Me.Title, MessageBoxButton.YesNo) = MessageBoxResult.Yes Then&lt;br /&gt;                Dim row = CType(Me.View.CurrentItem, System.Data.DataRowView).Row&lt;br /&gt;                row.Delete()&lt;br /&gt;            End If&lt;br /&gt;        End If&lt;br /&gt;    End Sub&lt;br /&gt; &lt;br /&gt;    Private Sub btnToevoegen_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles btnToevoegen.Click&lt;br /&gt;        Dim row = Me.CustomerData.Table1.NewTable1Row&lt;br /&gt;        row.naam = &amp;quot;&lt;a href="http://code.msdn.microsoft.com/wpfdatavideos/Wiki/View.aspx?title=Verplicht"&gt;Verplicht&lt;/a&gt;&amp;quot;&lt;br /&gt;        Me.CustomerData.Table1.AddTable1Row(row)&lt;br /&gt;        Me.View.MoveCurrentToLast()&lt;br /&gt;    End Sub&lt;br /&gt; &lt;br /&gt;    Private Sub btnOpnieuw_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles btnOpnieuw.Click&lt;br /&gt;        If Me.CustomerData.HasChanges Then&lt;br /&gt;            If MessageBox.Show(&amp;quot;Weet je het zeker? Je verliest al je veranderingen?&amp;quot;, Me.Title, MessageBoxButton.YesNo) = MessageBoxResult.Yes Then&lt;br /&gt;                Me.CustomerData.RejectChanges()&lt;br /&gt;            End If&lt;br /&gt;        End If&lt;br /&gt;    End Sub&lt;br /&gt; &lt;br /&gt;    Private Sub btnOpslaan_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles btnOpslaan.Click&lt;br /&gt;        Try&lt;br /&gt;            If Me.CustomerData.HasChanges Then&lt;br /&gt;                If Me.taManager.UpdateAll(Me.CustomerData) &amp;gt; 0 Then&lt;br /&gt;                    MsgBox(&amp;quot;Opgeslagen.&amp;quot;)&lt;br /&gt;                End If&lt;br /&gt;            End If&lt;br /&gt;        Catch ex As Exception&lt;br /&gt;            MsgBox(ex.ToString)&lt;br /&gt;        End Try&lt;br /&gt;    End Sub&lt;br /&gt; &lt;br /&gt;    Private Sub btnClose_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles btnClose.Click&lt;br /&gt;        Me.Close()&lt;br /&gt;    End Sub&lt;br /&gt; &lt;br /&gt;    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles Button1.Click&lt;br /&gt;        Me.View.MoveCurrentToLast()&lt;br /&gt;    End Sub&lt;br /&gt; &lt;br /&gt;    Private Sub btnZoeken_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles btnZoeken.Click&lt;br /&gt;        Try&lt;br /&gt; &lt;br /&gt;           If CType(Me.taCust.Search(Me.txtSearch.Text), Integer) &amp;gt; 0 Then&lt;br /&gt;                MsgBox(&amp;quot;Klant Gevonden!&amp;quot;)&lt;br /&gt;           Else&lt;br /&gt;                MsgBox(&amp;quot;Klant niet Gevonden.&amp;quot;)&lt;br /&gt;            End If&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt;        Catch ex As Exception&lt;br /&gt; &lt;br /&gt;            MsgBox(ex.ToString)&lt;br /&gt; &lt;br /&gt;        End Try&lt;br /&gt;   End Sub&lt;br /&gt;End Class&lt;br /&gt;
&lt;/div&gt;</description><author>MarkvL</author><pubDate>Tue, 26 Aug 2008 22:59:02 GMT</pubDate><guid isPermaLink="false">NEW POST: Any Questions? 20080826P</guid></item><item><title>NEW POST: Any Questions?</title><link>http://code.msdn.microsoft.com/wpfdatavideos/Thread/View.aspx?ThreadId=496</link><description>&lt;div class="wikidoc"&gt;
Hi Mark,&lt;br /&gt; &lt;br /&gt;That sounds like a databinding issue. Make sure the window's DataContext is set to the instance of the dataset that is returned from the search. &lt;br /&gt; &lt;br /&gt;HTH,&lt;br /&gt;-B&lt;br /&gt;
&lt;/div&gt;</description><author>BethMassi</author><pubDate>Mon, 28 Jul 2008 18:54:38 GMT</pubDate><guid isPermaLink="false">NEW POST: Any Questions? 20080728P</guid></item><item><title>NEW POST: Any Questions?</title><link>http://code.msdn.microsoft.com/wpfdatavideos/Thread/View.aspx?ThreadId=496</link><description>&lt;div class="wikidoc"&gt;
Hiya Beth,&lt;br /&gt; &lt;br /&gt;That last post helped me out alot!!!&lt;br /&gt;It works like a charm yet there's just one problem i'm stumbling on &lt;b&gt;*sighs deeply once again*&lt;/b&gt;&lt;br /&gt;The minute i write a name in the search box and click &amp;quot;Zoeken&amp;quot; (which is Find/Search) I get the msgbox saying &amp;quot;Customer found&amp;quot;.&lt;br /&gt;But how do i get it to actually view the results back on the page?&lt;br /&gt;I'm kinda lost on that one and yet again browsed and tried many options. But they don't fill my textboxes with the data i searched for.&lt;br /&gt; &lt;br /&gt;Here's a piece of code that i'm using currently:::&lt;br /&gt; &lt;br /&gt;Private Sub btnZoeken_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles btnZoeken.Click&lt;br /&gt;        Try&lt;br /&gt; &lt;br /&gt;            If CType(Me.taCust.Search(Me.txtSearch.Text), Integer) &amp;gt; 0 Then&lt;br /&gt;                MsgBox(&amp;quot;Klant Gevonden!&amp;quot;)&lt;br /&gt;            Else&lt;br /&gt;                MsgBox(&amp;quot;Klant niet Gevonden.&amp;quot;)&lt;br /&gt;            End If&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt;        Catch ex As Exception&lt;br /&gt; &lt;br /&gt;            MsgBox(ex.ToString)&lt;br /&gt; &lt;br /&gt;        End Try&lt;br /&gt;    End Sub&lt;br /&gt; &lt;br /&gt;You can see it's familiar to the one in your blog and it perfectly works but it just doesn't show the proper results :)&lt;br /&gt; &lt;br /&gt;Mark.&lt;br /&gt;
&lt;/div&gt;</description><author>MarkvL</author><pubDate>Sat, 26 Jul 2008 14:28:15 GMT</pubDate><guid isPermaLink="false">NEW POST: Any Questions? 20080726P</guid></item><item><title>NEW POST: Any Questions?</title><link>http://code.msdn.microsoft.com/wpfdatavideos/Thread/View.aspx?ThreadId=496</link><description>&lt;div class="wikidoc"&gt;
Hi Mark,&lt;br /&gt; &lt;br /&gt;The seach function is just standard TableAdapter stuff. You just need to specify a parameterized query to SQL server and a VB method will be generated on the TableAdapter which you call from your form. If you're having trouble with the SELECT syntax you can check out the SQL Server books online: http://msdn.microsoft.com/en-us/library/ms189826.aspx &lt;br /&gt; &lt;br /&gt;For help with the TableAdapters see the library, this should be a good starting point: http://msdn.microsoft.com/en-us/library/ms171905.aspx&lt;br /&gt; &lt;br /&gt;I also have an example of a parameterized query on my blog: http://blogs.msdn.com/bethmassi/archive/2007/05/25/creating-a-parameterized-query.aspx&lt;br /&gt; &lt;br /&gt;HTH,&lt;br /&gt;-B&lt;br /&gt;
&lt;/div&gt;</description><author>BethMassi</author><pubDate>Fri, 25 Jul 2008 04:02:29 GMT</pubDate><guid isPermaLink="false">NEW POST: Any Questions? 20080725A</guid></item><item><title>NEW POST: Any Questions?</title><link>http://code.msdn.microsoft.com/wpfdatavideos/Thread/View.aspx?ThreadId=496</link><description>&lt;div class="wikidoc"&gt;
Well i'm pretty much lost on the Search function.&lt;br /&gt;I have created a search button, browsed the net for the past 2 days to find a way to code it or to show it into the program.&lt;br /&gt;But i cannot find the code nor do i understand how to actually write a name, hit the search button and the rest of the information shows up.&lt;br /&gt;I've looked at other codes but they all do not do what i want to have.&lt;br /&gt; &lt;br /&gt;:::&lt;br /&gt;If you specify a WHERE clause then it will generate a method that you can call and pass the search parameter to it. &lt;br /&gt;:::&lt;br /&gt; &lt;br /&gt;I think i got the WHERE fixed and solved, but how do i create that search parameter?&lt;br /&gt;All i have now is the &amp;quot;btnSearch&amp;quot; &lt;b&gt;*shrugs*&lt;/b&gt;&lt;br /&gt; &lt;br /&gt;Sorry for bugging you for all of this but i've been going on with this new stuff for 6 weeks and finding the right related stuff is harder than i thought.&lt;br /&gt;
&lt;/div&gt;</description><author>MarkvL</author><pubDate>Thu, 24 Jul 2008 15:33:40 GMT</pubDate><guid isPermaLink="false">NEW POST: Any Questions? 20080724P</guid></item></channel></rss>