Possible bug using BBS to fill a combo in a DataGridView


Author
Message
Juan Carlos Pazos
Juan Carlos Pazos
StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)
Group: Forum Members
Posts: 144, Visits: 227
Hi

Maybe this a bug, or my form has a problem.

I create a form and use a BBS to link to the primary BO for the form, then I put a DataGridView an connect to the BBS without problems.

As one value in the grid is the company id (IdCompany), I add another BO (for the companies) and other BBS for tha BO. Then in the Grid I adjust for the IdCompany the column type as ComboBoxColumn, DataSource to the second BBS (the one related to the companies BO), the DisplayMember to the field that has de company name and the ValueMember to the IdCompany.

Run the application and works. If I do any change to the form, for example I have a BrowseDialog and I make any change, when run the app, the system gets an error regarding that can not find the name of the field for the DisplayMember in the combo.

I back to the Grid, change the DisplayMember to any other field and the app runs, the I have to change again to the company name again to get all working.

Is this a bug or is somethin I doing wrong?

Regards

Smile Everything is possible, just keep trying...

Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Whenever you get an error and you would like help in diagnosing your problem, please post the stack trace of the error that you are getting.  This does, however, sound more likely to be an application bug not a framework issue.  Before we can help you will need to post the stack trace and/or a quick sample showing how to reproduce the problem.  Thanks.
Juan Carlos Pazos
Juan Carlos Pazos
StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)
Group: Forum Members
Posts: 144, Visits: 227
Hi

I made a video, hope it helps.

In the video you will see how I define a combo for the Grid and configure the properties for the field, next I run the application and you will see that works. Then I made a change to the Grid - the problem occurs if any change is made to any object of the form -, after that run the application again and the error comes up. Next I go back to the Grid, change the field to show in the combo and again it works, finally I go bak to the form reestablish the combo in the Grid to the correct field.

As I said, I don't know if is a problem that happens by some error in my application, a bug in the GridView of MS or something related to the StrataFrame.

It's it not to much problem, I learn that if I define all events, properties, code in the form first and left to final configure the combo in the Grid it will not be any problem.

The video is in: http://www.vidacristiana.org.mx/strataframe/BBS_bug.html

Regards

Smile Everything is possible, just keep trying...

Peter Jones
Peter Jones
Advanced StrataFrame User (518 reputation)Advanced StrataFrame User (518 reputation)Advanced StrataFrame User (518 reputation)Advanced StrataFrame User (518 reputation)Advanced StrataFrame User (518 reputation)Advanced StrataFrame User (518 reputation)Advanced StrataFrame User (518 reputation)Advanced StrataFrame User (518 reputation)Advanced StrataFrame User (518 reputation)
Group: Forum Members
Posts: 386, Visits: 2.1K
Hi Juan,

I can't help with your problem (we use DevExpress for all UI work) what I am interesting in is what tool did you use to record the video?

Cheers, Peter

Juan Carlos Pazos
Juan Carlos Pazos
StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)
Group: Forum Members
Posts: 144, Visits: 227
Hi Peter

Camtasia Studio, (http://www.techsmith.com/camtasia.asp) it's very easy did a video like I did, only a few minutes and clicks. Of course you can make many more complex with more time.

I have DevExpress too, if I use their Grid, can I configure the combo as I did with the MS Grid? If is different can you give some directions to do it.

Regards

Smile Everything is possible, just keep trying...

Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
I thought that this would work so I created a sample program and it works as it should.  It would appear that your ValueMember field and the underlying value behind it doesn't line up with the grids column to which you are binding.

I created a sample using the StrataFrameSample database and you will see that it populates and updates correctly.  Hopefully this will help you see where your problem is.

Attachments
GridTest.zip (122 views, 126.00 KB)
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search