StrataFrame Forum

Grids Not from StrataFrame

http://forum.strataframe.net/Topic1315.aspx

By Wayne Van Rooyen - 6/1/2006

Based on the documentation we can place a binding source on the form and set that to a BO and bind a grid to the bindingsource. Under normal circumstances once you bind to a datasource you have the option of setting up columns in the grids as they are populated from the bindingsource. Using third party controls (infragistics) we dont see any columns in the grid designer. Is this normal, how do we set column captions etc etc.
By StrataFrame Team - 6/1/2006

The columns will not appear unless the BusinessObject property is already set on the BusinessBindingSource before the BusinessBindingSource is set as the DataSource for the grid.  Configure the BusinessBindingSource first and then set it as the DataSource for the grid, and the columns will be auto-generated.
By Wayne Van Rooyen - 6/1/2006

I dont see what i am doing wrong here then.
1) I have a customerBO on a form
2) Place a BusinessBindingSoruce on form
3) Select CustomerBO for the BusinessObejct in the BusinessBindingSource
4) Drop a grid (either infragisitcs/devexpress  on the form
5) Set Datasource to BusinessBindingSource
6) Both grids do not show all columns they show 1 column called "column"

Is this the incorrect method also what version should i be using for this to work.

By StrataFrame Team - 6/1/2006

Hrm, that's the correct process, and no, that's not the functionality you should be receiving.  The grid should populate with all of the columns that belong to that business object (cust_pk, cust_fname, cust_lname, etc.).  If you're only getting 1 column then something is wrong.  Do you get the same functionality when you use a standard DataGridView and set it's DataSource, or are the columns created correctly?

Out of curiosity, have you gone through the Business Object Mapper for your CustomersBO and built the partial class for it?  You'll need to make sure the partial class has been created and the project built before the columns will be auto-generated...

By Wayne Van Rooyen - 6/1/2006

It does it with all grids. All BO have been rebuilt. Which version do you have intalled that it works on.
By StrataFrame Team - 6/1/2006

Wayne,

Try this version and see if it corrects your problem with the auto-generated columns.  I tweaked the ITypedList interface methods to see if it would help.  You'll need to uninstall the version you have before installing this version, but you don't have to re-activate, or deploy the database again.

By Wayne Van Rooyen - 6/1/2006

Hi,

Whatever you did it is working, thank goodness. I have been trying to get my head around this product for about 6 hours know, and could not figure out what i was doing wrong.

One a second note there is a sample of ChildDialog in C#. Where in the help manual does it show how this is done with explanations, i would like to jst have one devex grid that when double clicked opens the child form with the selected record in edit mode.

Thanks for sorting out the other problem so promptly, never seen support like that before.

Regards Wayne

By StrataFrame Team - 6/1/2006

I have been trying to get my head around this product for about 6 hours know, and could not figure out what i was doing wrong.

Sorry about the frustrations, hopefully you'll get it working and see how smooth it is Smile

Thanks for sorting out the other problem so promptly, never seen support like that before.

Thank you for the compliment.  We try to handle all of the problems we receive as promptly as possible.  Thankfully, this was a quick fix.  I've got a couple improvements on my plate right now that aren't quick fixes Sad