StrataFrame Forum

Business Binding Source

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

By Ian Hammond - 10/29/2010

Hi,

I am trying to bind a business object to a data grid view. I have successfully created a BBS and linked this to the grid so the field names are displayed in the column headers. I'm not sure how to get the data in the table displayed in the grid. I have defined the BO_ParentFormLoading event but there is no data displayed. Could someone push me in the right direction,

many thanks
By Ivan George Borges - 10/29/2010

Hi Ian.

You will basically create a fill method for the BO that the BBS is set for and get the data into the BO using its fill method. Depending on where you are doing this, you might need to refresh your grid.
By Ian Hammond - 11/1/2010

Hi Ivan,

Many thanks for your response. I have set  up the ParentFormLoading with a FillDataTable which is being called when the form is loaded. The data grid view is not showing any data. I'm not sure what you mean by refreshing the data grid, could you be a little more specific please,

Many thanks
By Ivan George Borges - 11/1/2010

Hi Ian.

I wrote a quick and simple sample for you to have a look. See if it helps. Wink
By Ian Hammond - 11/2/2010

Hi Ivan,

Many thanks for the example. I now have it sorted. I had created a Binding Source module by adding a new item to the project. I then noticed the binding source in the tool box which I then added to the form!. This worked

Thanks again, regards
By Ivan George Borges - 11/2/2010

Glad it helped, Ian! Cool