Errors adding a new row


Author
Message
Daniel Essin
Daniel Essin
StrataFrame User (339 reputation)StrataFrame User (339 reputation)StrataFrame User (339 reputation)StrataFrame User (339 reputation)StrataFrame User (339 reputation)StrataFrame User (339 reputation)StrataFrame User (339 reputation)StrataFrame User (339 reputation)StrataFrame User (339 reputation)
Group: Forum Members
Posts: 235, Visits: 309
I've got the grid, businessGindingSource and BO mentioned earlier and a data navbar.



I've got this code in the BO:

private void ResultDefs_SetDefaultValues()

{

this.ResultDefId = Guid.NewGuid();

this.OccurrenceValue = 0;

}



When I click add on the data nav bar I get invalid cast errors in the code below both before and after the SetDefaultValues method is executed. I'm confused.



public System.Int32 OccurrenceValue

{

get

{

return (System.Int32)this.CurrentRow["OccurrenceValue"];

}

set

{

this.CurrentRow["OccurrenceValue"] = value;

}

}

public System.Guid ResultDefId

{

get

{

return (System.Guid)this.CurrentRow["ResultDefId"];

}

set

{

this.CurrentRow["ResultDefId"] = value;

}

}



Please help. Thanks,

Dan
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Daniel Essin - 19 Years Ago
StrataFrame Team - 19 Years Ago
Daniel Essin - 19 Years Ago
StrataFrame Team - 19 Years Ago
                     Yes. Same error in the watch window.
Daniel Essin - 19 Years Ago
                         If you put this in the watch window, what is the value?...
StrataFrame Team - 19 Years Ago
                             yes it's system.guid
Daniel Essin - 19 Years Ago
                                 OK, I've found the navigator that is embedded in the DevExp grid and...
Daniel Essin - 19 Years Ago
                                     Please note that this issue is not resolved and that I have been...
Daniel Essin - 19 Years Ago
                                     I apologize for the slow response, Daniel, Trent and I are both out of...
StrataFrame Team - 19 Years Ago
                                         I was able to create a sample and run it without error by using the...
StrataFrame Team - 19 Years Ago
                                             This is probably something that I need to discuss with you on the...
Daniel Essin - 19 Years Ago
                                                 I'm still out of town, and I won't be flying back until Friday, which...
StrataFrame Team - 19 Years Ago
                                                     Attachment for phone call
Daniel Essin - 19 Years Ago
                                                         Additional for call:

private void...
Daniel Essin - 19 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search