I've created a duplicate RadGrid that I connect directly to the BO, bypassing the WBBS and I get my 3 records and each line is displaying the correct data. Except that here my custom fields are not displaying correctly.
Finally, just to take all the wind out of my sales when I use the default GridView bound via the WBBS it displays normally, different data on each line and the custom fields are displaying correctly...
How do I fix this?
To simplify things and isolate the issue I created a new solution from scratch. I only added the one BO and the RadGrid to the page. I added a RadGrid and a GridView. I set both to allow paging and to have a pageSize of 3. Both are bound to my WBBS, which is wrapping my BO. I Fill my BO with the following 5 records.
1 - foo2 - bar3 - zip4 - zap5 - ack
The GridView displays the 3 records as expected, including the custom fields. and paginates normally to the 4th and 5th records.
The RadGrid on the other hand is displaying 3 records, but all three are displaying 'zip' and even stranger when I paginate forward the 2 records that are displayed both show as 'foo'. This happens regardless of the pagesize I set, it always displays the expected last record in place of all the displayed records. The only time this is not true is if I disable pagination and remove the pagesize, in that case it displays the first record ('foo') for all five entries.
I hope I'm making sense, thanks for your help!
OK, that gives me some more info. Thanks.
So have you had a chance to try to reproduce this? I'm still trying to figure it out with no luch so far.
Ben,
For lack of a better solution I am forced to use this hack for the time being. I'm binding to the BO rather than the WBBS. Do you have any idea why the WBBS is not advancing the CurrentRecord?
RadGrid1.ItemDataBound +=
Could probably wire it up to keep track of what row it should be displaying but I havn't had the time.
A real fix for the WBBS would be great.