Possible bug using BBS to fill a combo in a DataGridView


Author
Message
Juan Carlos Pazos
Juan Carlos Pazos
StrataFrame User (310 reputation)StrataFrame User (310 reputation)StrataFrame User (310 reputation)StrataFrame User (310 reputation)StrataFrame User (310 reputation)StrataFrame User (310 reputation)StrataFrame User (310 reputation)StrataFrame User (310 reputation)StrataFrame User (310 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...

Replies
Juan Carlos Pazos
Juan Carlos Pazos
StrataFrame User (310 reputation)StrataFrame User (310 reputation)StrataFrame User (310 reputation)StrataFrame User (310 reputation)StrataFrame User (310 reputation)StrataFrame User (310 reputation)StrataFrame User (310 reputation)StrataFrame User (310 reputation)StrataFrame User (310 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 (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: 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 (133 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