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


««12

FieldName property not working on...Expand / Collapse
Author
Message
Posted 09/01/2006 12:11:28 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 3:20:54 PM
Posts: 4,769, Visits: 4,731
It depends.  In some circumstances you may have to call the refresh.
Post #2623
Posted 09/01/2006 2:17:43 PM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: Yesterday @ 3:58:27 PM
Posts: 310, Visits: 450
Now that I have this setup with the DevEx grid I'm getting some completely different behaviors than I was with the EnhancedList.  For example, I create a new record and go to input the data into my bound fields.  I select a date from a drop-down and it checks the business rules when I do the selection instead of when I call save.  I'm not sure how this is happening, but it's causing the red error icons to pop up before I actually save.  I can't input everything in before it starts popping error icons. 

Also, If I create a new record and then undo it gives me an error sayig that the current row is out of range.  This is true because for some reason it's hanging on to the new record it creates.  I'm not sure what the difference in the interaction is between the GridControl and the BO vs. the EnhancedList and the BO, but it's very different and I'm not sure where I'm going wrong getting these to work together. 

Post #2624
Posted 09/01/2006 3:18:25 PM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: Yesterday @ 3:58:27 PM
Posts: 310, Visits: 450
When I create a new record, it creates a blank row in the grid before I have saved it.  I think this is causing my index out of range problem.  What in the BO is causing this to happen in the grid?  I don't understand how these work together...I thought it would be the same as the EnhancedList since it was inherited.
Post #2626
Posted 09/01/2006 3:56:44 PM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: Yesterday @ 3:58:27 PM
Posts: 310, Visits: 450
I have it figure out.  I was Navigating by primary key on a FocusedRowChanged event, but the grid was firing that event when the data source was changing so it was trying to navigate when it shouldn't have been.  I changed the event to a click so it would only be on user interaction.  Works great now.
Post #2627
Posted 09/05/2006 1:25:34 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 10/21/2008 9:20:58 AM
Posts: 2,685, Visits: 1,887
You could also change the CheckCurrentRowBeforeNavigate property to false so that the business object will not check the business rules on the row before it attempts to navigate the CurrentRowIndex.  The business rules would still get checked before it saves, though.


www.bungie.net
Post #2636
« Prev Topic | Next Topic »

««12

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 4:42am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.109. 8 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.