UltraGrid AllowAddNew reset by Business Object


Author
Message
Aaron Young
Aaron Young
Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)
Group: StrataFrame Users
Posts: 277, Visits: 1.1K
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

Replies
Aaron Young
Aaron Young
Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)
Group: StrataFrame Users
Posts: 277, Visits: 1.1K
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

Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
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.
Aaron Young
Aaron Young
Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)
Group: StrataFrame Users
Posts: 277, Visits: 1.1K
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

Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
Cool Cool
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search