StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Binding BO to DataGridExpand / Collapse
Author
Message
Posted 02/05/2008 7:39:16 PM
StrataFrame Novice

StrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame Novice

Group: StrataFrame Users
Last Login: Yesterday @ 6:30:29 PM
Posts: 71, Visits: 231
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

  Post Attachments 
Grouped Devexpress.gif (13 views, 21.84 KB)
Refreshed Devexpress.gif (17 views, 15.71 KB)
Ungrouped Devexpress.gif (12 views, 19.76 KB)

Post #14056
Posted 02/06/2008 8:38:38 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 4:17:19 AM
Posts: 4,379, Visits: 4,420
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.

Post #14070
Posted 02/06/2008 3:31:00 PM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: Yesterday @ 7:21:14 PM
Posts: 222, Visits: 1,096
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

Post #14129
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 6:39pm

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.125. 12 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.