| | | 
StrataFrame User
       
Group: StrataFrame Users Last Login: 07/10/2008 8:05:20 AM Posts: 146, Visits: 512 |
| | I have a Grid on my main form attached to a BBS. I also have a childform attached to the BO which is attached to the BBS. I also have the standard add edit code (BO.ADD,BO.EDIT in the childform not in the mainform) calling the child form. The problem seems to be that the Grid's InitializeRow seems to not only fire when the grid initially(as it should) loads, it also fires when I call a BO.ADD and load of the childform? It seems to get called when I am in edit mode as well? I set the debugger and discovered that it fires while I am entering data in fields on the subform? SF = Latest Version (Beta) Ultragrid 2008.1 VS 2008 Michael |
| | | | 
StrataFrame Developer

Group: StrataFrame Developers Last Login: Yesterday @ 9:36:54 PM Posts: 4,200, Visits: 4,251 |
| This sounds like more of a Grid issue versus a BBS/BO issue. We actaully use this grid in a number of places and amongst the 3500+ properties there could be something set that is changing the behavior of the grid. Honestly, these types of questions are really hard to help with without some type of sample that reproduces the problem. If you produce a simple sample that reproduces the problem then I will take a gander at it to see if I can tell where the issue is. Thanks. |
| | | | 
StrataFrame User
       
Group: StrataFrame Users Last Login: 07/10/2008 8:05:20 AM Posts: 146, Visits: 512 |
| | Ok Trent, I will try to put something together. I do not think that I am doing anything special? Could the execution of InitializeRow be because the BO on the parent and child are the same? As I am entering data in editmode (before save) in the Childform, the parentform BO seems to be trying to populate as well? |
| | | | 
StrataFrame Developer

Group: StrataFrame Developers Last Login: Yesterday @ 9:36:54 PM Posts: 4,200, Visits: 4,251 |
| | Well, that does sound suspect...but this is a highly used control, by SF developers (including ourselves) and this is the first time I have ever heard of this behavior. |
| | | | 
StrataFrame User
       
Group: StrataFrame Users Last Login: 07/10/2008 8:05:20 AM Posts: 146, Visits: 512 |
| | I know. I hope that this is not an issue with Version 2008.1? I do not think that I saw this behavior before? |
| | | | 
StrataFrame User
       
Group: StrataFrame Users Last Login: 07/10/2008 8:05:20 AM Posts: 146, Visits: 512 |
| | Here is an example of what is happening. I have the grid attached to a BBS and is calling a Childform. As I type in the controls, the BO seems to be moving through the records as you can see from the attached zipped flash demo. Michael Edit Code from Calling Form Private Sub cmdEdit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdEdit.Click 'Get and Set the Company ID from the Row being called Dim LocCompanyID As Integer = GridData.ActiveRow.Cells("cusRecParID").ValueaBOMain.SeekToPrimaryKey( Me.GridData.ActiveRow.Cells("recRecID").Value)'-- Show the child editing formIf ChildServiceForm.ShowDialog(LocCompanyID) = Windows.Forms.DialogResult.OK ThenElse'-- Undo the changes to the current rowaBOMain.Undo(BusinessUndoType.CurrentRowOnly) End IfEnd Sub
|
| |
|
|