Binding BO to DataGrid


Author
Message
Richard Keller
Richard Keller
StrataFrame User (132 reputation)StrataFrame User (132 reputation)StrataFrame User (132 reputation)StrataFrame User (132 reputation)StrataFrame User (132 reputation)StrataFrame User (132 reputation)StrataFrame User (132 reputation)StrataFrame User (132 reputation)StrataFrame User (132 reputation)
Group: Forum Members
Posts: 84, Visits: 324
I have a BO that is bound to a Devexpress Datagrid and when loaded without grouping it works beautifully.   However if the grouping is done the layout is incorrect.  But the data is correct and if ungrouped and regrouped by the any column the display is correct. 

1.  The first image is the Grouped Grid.

2.  The second image is the same grouped grid with the data refreshed and it is wrong.

3.  I simply ungroup ( without data refresh ) on the 3rd Image and regroup and the display is correct.  Without any data access.

I thought that this might be related to the bug that someone else had but it didn't seem to be so.  Any ideas?

Thanks,

Richard

Attachments
Grouped Devexpress.gif (98 views, 21.00 KB)
Refreshed Devexpress.gif (94 views, 15.00 KB)
Ungrouped Devexpress.gif (98 views, 19.00 KB)
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Richard,

Just from looking at this I cannot give you a straight answer here...one thing I thought I might suggest is trying the EnhancedListVIew that comes with the SF framework.  It actually uses groups (if you choose to in the RowPopulatingEvent).  You would just set the e.UseGroups to True and then provide a GroupHeaderText and it will group these items.  So I know that it IS possible for grouping to work with the DevExpress grid, but this is not a control that I use outside of trying to figure out issus that appear on the forum.  You might first see if you have the same behavior on that control, otherwise I am going to just have to setup some kind of sample to try and reproduce your problem....setting up the EnhancedListView might at least give you an idea of where your problem is...but I am not sure why the BBS would cause an issue here.

Peter Jones
Peter Jones
Advanced StrataFrame User (504 reputation)Advanced StrataFrame User (504 reputation)Advanced StrataFrame User (504 reputation)Advanced StrataFrame User (504 reputation)Advanced StrataFrame User (504 reputation)Advanced StrataFrame User (504 reputation)Advanced StrataFrame User (504 reputation)Advanced StrataFrame User (504 reputation)Advanced StrataFrame User (504 reputation)
Group: Forum Members
Posts: 386, Visits: 2.1K
Hi Richard,

Have you had a look at the column's "SortMode" property in the DevExpress grid? Perhaps try "displayed text" rather than "default". We always set the sort mode of every column to "display text" unless it is a date/time column in which case we set the sort mode to "value".

I don't know if this will help but I've never noticed any sorting issues on our forms.

Also, be careful when dragging / dropping columns in design mode because you may inadvertently set a column to sort.

Cheers, Peter

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search