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



UltraGrid AllowAddNew reset by Business...Expand / Collapse
Author
Message
Posted 06/14/2008 5:05:25 PM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 2 days ago @ 6:35:40 PM
Posts: 140, Visits: 345
I have an UltraGrid bound to a BBS. The grid has DisplayLayout.Override.AllowAddNew = AllowAddNew.FixedAddRowOnBottom. When the form is run, this property is reset to AllowAddNew.No when my BO.FillAll() method is called in the ParentFormLoading event. The only code in BO.FillALL() is a FillDataTable with a select statement.

After the FillAll(), I set the property back to FixedAddRowOnBottom only for it to be reset back to No when a new record is added.

Is there something in the SF code which is doing this?

Thanks in advance,

Aaron

Post #17068
Posted 06/16/2008 9:28:20 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 4:17:19 AM
Posts: 4,379, Visits: 4,420
Is there something in the SF code which is doing this?

Welcome to grid hell   I ove the Infragistics grid...once it is working, but up until that point I generally like to swear at it a bit

In this case the BBS should not be affecting this.  I am trying to think of what would even cause this to change.  There is some logic when implementing the IBindingList interface that determines how new records, etc. are dealt with and even supported.  But I cannot think of anything that would cause this to happen as this is a very common thing.  I know that we have done this ourselves and that a number of other SF developers would most than likely use this feature as well.  I never like to say "it 100% isn't the framework" as I generally get that stuffed up my nose...but it really should not be a factor.

Post #17087
Posted 06/16/2008 6:19:10 PM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 2 days ago @ 6:35:40 PM
Posts: 140, Visits: 345
Hi Trent,

I have traced it and if I remove the FillDataTable call the grid property remains unchanged. If I add the FillDataTable call the property is changed by the time the call returns. Something is causing the property to reset and it is definately due to this call. I am using 2008 v2 so maybe there is a bug in the grid. However, I just tested this on the small application I sent you in another thread and it works. So something weird is going on here.

Regards,

Aaron

Post #17112
Posted 06/17/2008 9:22:30 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 4:17:19 AM
Posts: 4,379, Visits: 4,420
Well, we use the Infragistics grid quite a bit within our medical app and I have not experienced or heard of any of the other developers mention anything like this.  However, we are running on .NET 2007 Vol. 3, so possibly there is an issue between the two versions.  You are welcome to post a sample and we can take a look at it.
Post #17118
Posted 06/17/2008 2:05:57 PM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 2 days ago @ 6:35:40 PM
Posts: 140, Visits: 345
Don't worry about this one for now. I have a form which works and many which don't so I will try and trace the difference.

Thanks,

Aaron

Post #17126
Posted 06/17/2008 8:04:04 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 4:17:19 AM
Posts: 4,379, Visits: 4,420
Cool
Post #17131
« 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 7:03pm

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