﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WebForms (How do I?)  » Using WebBusinessBindingSource with DevExpress 8.1.1 ASPxGridView</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Mon, 08 Jun 2026 22:44:51 GMT</lastBuildDate><ttl>20</ttl><item><title>Using WebBusinessBindingSource with DevExpress 8.1.1 ASPxGridView</title><link>http://forum.strataframe.net/FindPost17221.aspx</link><description>Hello,&lt;br&gt;
&lt;br&gt;
I'm doing a test web page with a DevExpress 8.1.1 ASPxGridView and a WebBusinessBindingSource.&lt;br&gt;
&lt;br&gt;
I've linked the WebBusinessBindingSource to a SF BO that represents a SQL2005 table.  It has some custom properties on it but aside from that is a straight mapping of the table.&lt;br&gt;
&lt;br&gt;
I've set the data source for the grid to the WebBusinessBindingSource.  (The grid doesn't appear to like the custom properties, so I've just loaded a couple of varchar fields as columns and under those conditions it appears to work ok for setting up the columns and displaying them).&lt;br&gt;
&lt;br&gt;
I populate the WebBusinessBindingSource's underlying BO in the PageLoad method of the page.&lt;br&gt;
&lt;br&gt;
When I run the page, the BO seems to properly populate with about 140 records, but the grid displays just the first row and then repeats the first row for all the remaining rows that it displays. &lt;br&gt;
&lt;br&gt;
I'm able to get all rows to display when using a SqlDataSource, so I am thinking this has something to do with the WebBusinessBindingSource.  &lt;br&gt;
&lt;br&gt;
It feels like I've got to be missing something simple here -- any suggestions as to why the single row repeats in the display?&lt;br&gt;
&lt;br&gt;
And has anyone had any experience with using custom properties as sources for the grid columns?  (Not sure why this doesn't work ....)</description><pubDate>Fri, 25 Jul 2008 08:27:15 GMT</pubDate><dc:creator>Mark Dowlearn</dc:creator></item><item><title>RE: Using WebBusinessBindingSource with DevExpress 8.1.1 ASPxGridView</title><link>http://forum.strataframe.net/FindPost18078.aspx</link><description>Have you tried it to see if it works properly?&amp;nbsp; Let me know if it's still acting weird.</description><pubDate>Fri, 25 Jul 2008 08:27:15 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Using WebBusinessBindingSource with DevExpress 8.1.1 ASPxGridView</title><link>http://forum.strataframe.net/FindPost18059.aspx</link><description>Thank you very very much&lt;br&gt;
&lt;br&gt;</description><pubDate>Thu, 24 Jul 2008 19:59:20 GMT</pubDate><dc:creator>Chan</dc:creator></item><item><title>RE: Using WebBusinessBindingSource with DevExpress 8.1.1 ASPxGridView</title><link>http://forum.strataframe.net/FindPost18056.aspx</link><description>Chan,&lt;/P&gt;&lt;P&gt;You can get the most recent version here that has that fix: &lt;A href="http://forum.strataframe.net/FindPost18055.aspx"&gt;http://forum.strataframe.net/FindPost18055.aspx&lt;/A&gt; .</description><pubDate>Thu, 24 Jul 2008 13:37:28 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Using WebBusinessBindingSource with DevExpress 8.1.1 ASPxGridView</title><link>http://forum.strataframe.net/FindPost18053.aspx</link><description>I finally discovered that the Telerik and DevExpress grids do not use the enumerator of the DataSourceView in a predictable fashion.&amp;nbsp; They create their own list of items to store in the list because they provide paging.&amp;nbsp; This allows them to use a for loop, not a foreach loop to build the grid from only the items they want to display.&amp;nbsp; We had to change the WBBS enumerator to return a new BO reference like the winforms BBS does.&amp;nbsp; It's fixed, and we'll try to get a build together so we can post it as the new 1.6.6 Beta.&amp;nbsp;</description><pubDate>Thu, 24 Jul 2008 09:12:35 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Using WebBusinessBindingSource with DevExpress 8.1.1 ASPxGridView</title><link>http://forum.strataframe.net/FindPost18048.aspx</link><description>Hi,&lt;br&gt;
Shall I have this fix ASAP? I need it urgently. I am "stuck" here cannot deliver.&lt;br&gt;
&lt;br&gt;
Sorry for any inconvenience.&lt;br&gt;
&lt;br&gt;
Thank you</description><pubDate>Thu, 24 Jul 2008 01:02:45 GMT</pubDate><dc:creator>Chan</dc:creator></item><item><title>RE: Using WebBusinessBindingSource with DevExpress 8.1.1 ASPxGridView</title><link>http://forum.strataframe.net/FindPost17903.aspx</link><description>Chan,&lt;/P&gt;&lt;P&gt;This is actually something that we are looking at but we are in the middle of SF class this week and next.&amp;nbsp; So we will try and get you some answers as soon as we can.&amp;nbsp; Thanks.</description><pubDate>Thu, 17 Jul 2008 08:52:28 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Using WebBusinessBindingSource with DevExpress 8.1.1 ASPxGridView</title><link>http://forum.strataframe.net/FindPost17872.aspx</link><description>Hi,&lt;br&gt;
Any updates?&lt;br&gt;
&lt;br&gt;
Thank you</description><pubDate>Tue, 15 Jul 2008 20:17:43 GMT</pubDate><dc:creator>Chan</dc:creator></item><item><title>RE: Using WebBusinessBindingSource with DevExpress 8.1.1 ASPxGridView</title><link>http://forum.strataframe.net/FindPost17519.aspx</link><description>Hi,&lt;br&gt;
Please find the attached sample project.&lt;br&gt;
&lt;br&gt;
Thank you</description><pubDate>Wed, 02 Jul 2008 01:08:56 GMT</pubDate><dc:creator>Chan</dc:creator></item><item><title>RE: Using WebBusinessBindingSource with DevExpress 8.1.1 ASPxGridView</title><link>http://forum.strataframe.net/FindPost17473.aspx</link><description>We have it on a list to look at but as of yet we have not reproduced.&amp;nbsp; You are welcome to post a sample that reproduces the problem so that we can more quickly reproduce the issue.</description><pubDate>Mon, 30 Jun 2008 09:37:02 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Using WebBusinessBindingSource with DevExpress 8.1.1 ASPxGridView</title><link>http://forum.strataframe.net/FindPost17472.aspx</link><description>Hi,&lt;br&gt;
Any update on this? I need it very urgently.&lt;br&gt;
Thank you</description><pubDate>Mon, 30 Jun 2008 09:15:47 GMT</pubDate><dc:creator>Chan</dc:creator></item><item><title>RE: Using WebBusinessBindingSource with DevExpress 8.1.1 ASPxGridView</title><link>http://forum.strataframe.net/FindPost17371.aspx</link><description>Hi,&lt;br&gt;
I also faced the same problem. I tried to bind the same WebBBS to AspxCombobox and it is working fine.&lt;br&gt;
&lt;br&gt;
Any ideas?&lt;br&gt;
&lt;br&gt;
Thank you</description><pubDate>Thu, 26 Jun 2008 02:26:54 GMT</pubDate><dc:creator>Chan</dc:creator></item><item><title>RE: Using WebBusinessBindingSource with DevExpress 8.1.1 ASPxGridView</title><link>http://forum.strataframe.net/FindPost17272.aspx</link><description>Let me know if you don't make any progress and I will see if I can reproduce.</description><pubDate>Mon, 23 Jun 2008 23:50:03 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Using WebBusinessBindingSource with DevExpress 8.1.1 ASPxGridView</title><link>http://forum.strataframe.net/FindPost17271.aspx</link><description>Thans -- I'll contintue to work on figuring it out.&lt;/P&gt;&lt;P&gt;m</description><pubDate>Mon, 23 Jun 2008 22:48:21 GMT</pubDate><dc:creator>Mark Dowlearn</dc:creator></item><item><title>RE: Using WebBusinessBindingSource with DevExpress 8.1.1 ASPxGridView</title><link>http://forum.strataframe.net/FindPost17245.aspx</link><description>[quote]I've already overridden the GetCustomBindablePropertyDescriptors method and have been using custom properties successfully with other controls.&amp;nbsp; It appears to me to be something specific to the interaction with SF and the DevExpress control.[/quote]&lt;/P&gt;&lt;P&gt;The DevExpress control should be totally irrelevant as the IBindingList implementation doesn't care about the control but rather speaking straight to the interface properties and methods.&lt;/P&gt;&lt;P&gt;The first thing I would do is take the BO in question and bind it to a WinForms grid through a standard BBS, then if that worked, take the WBBS and binding to a control other than the DevExpress grid (I have never attempted to use the web DevExpress grid, so I am afraid I cannot be of much help there without having to setup and get my head into this control itself, though I do not beleive that this is the problem anyway).</description><pubDate>Mon, 23 Jun 2008 12:48:58 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Using WebBusinessBindingSource with DevExpress 8.1.1 ASPxGridView</title><link>http://forum.strataframe.net/FindPost17244.aspx</link><description>Hello, Trent -&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;You need to override the GetCustomBindablePropertyDescriptors method and provide a ReflectionPropertyDescriptor for each custom property so that it can be bound.&lt;/P&gt;&lt;P&gt;I've already overridden the GetCustomBindablePropertyDescriptors method and have been using custom properties successfully with other controls.&amp;nbsp; It appears to me to be something specific to the interaction with SF and the DevExpress control.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;It sounds like something is repositioning the BO for each exposed row in the IBindingList implementation.&amp;nbsp; This can happen for a number of reasons: filters, sorts, other navigation code within an event of the BO, etc.&lt;/P&gt;&lt;P&gt;Hmmm....There are no filters or sorts on the BO, just a plain vanilla "FillAll()" and hook it up to the grid using a WebBusinessBindingSource.&amp;nbsp; No navigation code either.&amp;nbsp; I'll look at debugging through the source code unless there's something specific you would suggest.&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;There are a LOT of posts out here on the forum in this regard.&amp;nbsp; Here are just a few:&lt;BR&gt;&amp;gt;&amp;gt;&amp;gt;http://forum.strataframe.net/FindPost15985.aspx (This sample shows how to create a custom property and add a broken rule to that custom property)&lt;BR&gt;&amp;gt;&amp;gt;&amp;gt;&lt;A href="http://forum.strataframe.net/FindPost17063.aspx"&gt;http://forum.strataframe.net/FindPost17063.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Yes, these have been very helpful.&amp;nbsp; Still don't know why custom properties work with other controls but not the DevExpress control using the WebBusinessBindingSource, however.&lt;/P&gt;&lt;P&gt;&lt;A href="http://forum.strataframe.net/FindPost17063.aspx"&gt;&lt;/A&gt;&amp;nbsp;</description><pubDate>Mon, 23 Jun 2008 11:35:26 GMT</pubDate><dc:creator>Mark Dowlearn</dc:creator></item><item><title>RE: Using WebBusinessBindingSource with DevExpress 8.1.1 ASPxGridView</title><link>http://forum.strataframe.net/FindPost17231.aspx</link><description>[quote](The grid doesn't appear to like the custom properties, so I've just loaded a couple of varchar fields as columns and under those conditions it appears to work ok for setting up the columns and displaying them).[/quote]&lt;/P&gt;&lt;P&gt;You need to override the GetCustomBindablePropertyDescriptors method and provide a ReflectionPropertyDescriptor for each custom property so that it can be bound.&lt;/P&gt;&lt;P&gt;[quote]but the grid displays just the first row and then repeats the first row for all the remaining rows that it displays. [/quote]&lt;/P&gt;&lt;P&gt;It sounds like something is repositioning the BO for each exposed row in the IBindingList implementation.&amp;nbsp; This can happen for a number of reasons: filters, sorts, other navigation code within an event of the BO, etc.&lt;/P&gt;&lt;P&gt;[quote]And has anyone had any experience with using custom properties as sources for the grid columns? (Not sure why this doesn't work ....) [/quote]&lt;/P&gt;&lt;P&gt;There are a LOT of posts out here on the forum in this regard.&amp;nbsp; Here are just a few:&lt;/P&gt;&lt;P&gt;&lt;A href="http://forum.strataframe.net/FindPost15985.aspx"&gt;http://forum.strataframe.net/FindPost15985.aspx&lt;/A&gt;&amp;nbsp;(This sample shows how to create a custom property and add a broken rule to that custom property)&lt;/P&gt;&lt;P&gt;&lt;A href="http://forum.strataframe.net/FindPost17063.aspx"&gt;http://forum.strataframe.net/FindPost17063.aspx&lt;/A&gt;</description><pubDate>Mon, 23 Jun 2008 08:05:52 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>