tag:blogger.com,1999:blog-33753991.post8865118135914343803..comments2023-09-01T06:00:23.693-07:00Comments on Geek Goddess: Parent/Child DataBindingBonniehttp://www.blogger.com/profile/11241425687786973525noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-33753991.post-8222367563854302572018-04-06T07:09:44.664-07:002018-04-06T07:09:44.664-07:00There is no difference at all between
this.bsPare...There is no difference at all between<br /><br />this.bsParent.DataSource = this.dsCust;<br />this.bsParent.DataMember = "Customer";<br /><br />and<br /><br />this.bsParent.DataSource = this.dsCust.Customer<br /><br />In fact, I would prefer the second one. I wrote it like the first one in my blog post, just for consistency with the bsChild (which does have to be specified like the first one).Bonniehttps://www.blogger.com/profile/11241425687786973525noreply@blogger.comtag:blogger.com,1999:blog-33753991.post-137546906620869472018-04-04T02:18:05.097-07:002018-04-04T02:18:05.097-07:00In case when used Datarelation, What is the differ...In case when used Datarelation, What is the difference between:<br /><br />this.bsParent.DataSource = this.dsCust;<br />this.bsParent.DataMember = "Customer";<br /><br /><br />and<br /><br />this.bsParent.DataSource = this.dsCust.Customer<br /><strong>without</strong> this.bsParent.DataMember = "Customer";<br /><br />next...<br />this.bsChild.DataSource = this.bsParent;<br />this.bsChild.DataMember = "CustomerOrdersRelation";<br /><br />this.oGridCustomer.DataSource = this.bsParent;<br />this.oGridOrders.DataSource = this.bsChild;<br />this.txtOrderDescription.DataBindings.Add("Text", this.bsChild, "description");Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-33753991.post-621943840927435162018-03-27T07:16:39.972-07:002018-03-27T07:16:39.972-07:00I don't know, I've never benchmarked the p...I don't know, I've never benchmarked the performance difference between Filter and DataRelations. They probably have similar performance, but without actually doing a test, that's just a guess.Bonniehttps://www.blogger.com/profile/11241425687786973525noreply@blogger.comtag:blogger.com,1999:blog-33753991.post-79578058991579441832018-03-27T05:23:21.202-07:002018-03-27T05:23:21.202-07:00Thank you for your answer.
Whether the number of r...Thank you for your answer.<br />Whether the number of records affects the performance if the filter is used ?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-33753991.post-65405989009511070692018-03-26T14:07:46.634-07:002018-03-26T14:07:46.634-07:00I think that if you are already using DataRelation...I think that if you are already using DataRelations (for other reasons), then DataRelations are the way to go with the Child BindingSource. <br /><br />DataRelations can have their own issues (such as problems with FK Constraints if you're not careful). <br /><br />If you haven't needed to use a DataRelation for the rest of your application, then stick with Filters.Bonniehttps://www.blogger.com/profile/11241425687786973525noreply@blogger.comtag:blogger.com,1999:blog-33753991.post-63158842042177500172018-03-26T10:14:14.043-07:002018-03-26T10:14:14.043-07:00This is Excellent text !!!
What is your recommend...This is Excellent text !!!<br /><br />What is your recommendation: DataRelations or filter (note: if we consider that we are working with more records) ?<br />Anonymousnoreply@blogger.com