Home
Help
Register
Log in

Search

 
   Active Threads  

You are here: Home > LLBLGen Pro > LLBLGen Pro Runtime Framework> BindingSource and EntityCollection returns empty records
 

Pages: 1
LLBLGen Pro Runtime Framework
BindingSource and EntityCollection returns empty records
Page:1/1 

  Print all messages in this thread  
Poster Message
pandu
User



Location:

Joined on:
18-May-2006 07:20:06
Posted:
86 posts
# Posted on: 30-Mar-2009 16:51:30.  
Hi:

I am starting a WinForms app in VS2008 and using BindingSource with EntityCollection. When I selected the BindingSource for the DataSource of the Telerik Grid, it shows empty records at the run time.

When I tried to connect directly to the database, the same BindingSource shows all the records fine.

I am using LLBL 2.6 with Runtime Lib of August 11, 2008.

Please advise.

Thanks.
  Top
daelmo
Support Team



Location:
Guatemala City
Joined on:
28-Nov-2005 23:35:24
Posted:
8150 posts
# Posted on: 31-Mar-2009 05:47:13.  
Mmm. Would be helpful if you post more info about the problem or attach a mini-repro solution we can run (without dlls, just the project and some DDL).

David Elizondo
LLBLGen'ing (articles and code snippets) | linkedin | twitter
 
Top
pandu
User



Location:

Joined on:
18-May-2006 07:20:06
Posted:
86 posts
# Posted on: 31-Mar-2009 10:35:10.  
Here it is...

1. Copy LLBLGen DLLs to \Bin
2. Run the solution from the folder \TestLLBLGen-WindowsForms

Thanks in advance.



  Top
Walaa
Support Team



Location:

Joined on:
21-Aug-2005 16:03:48
Posted:
14639 posts
# Posted on: 31-Mar-2009 11:00:07.  
You should fetch the EntityCollection.

  Top
pandu
User



Location:

Joined on:
18-May-2006 07:20:06
Posted:
86 posts
# Posted on: 31-Mar-2009 12:47:31.  
Walaa:

I am moving from Web to Winforms.

And in Web, when you assign the Datasource to the Grid, it immediately shows the Columns for us to customize the look at the design time.

We are looking to do the same in Winforms.

Is that possible?

Thanks.
  Top
MTrinder
User



Location:
London by day, Milton Keynes by night.
Joined on:
08-Oct-2008 17:55:47
Posted:
1461 posts
# Posted on: 31-Mar-2009 21:03:42.  
Most grids support this - with some you have to click a "Retrieve Structure" button somewhere to tell it to fetch the column layout from the data source.

Which grid are you using ?

Matt


  Top
pandu
User



Location:

Joined on:
18-May-2006 07:20:06
Posted:
86 posts
# Posted on: 02-Apr-2009 08:07:15.  
I use Telerik Grid for Winforms
  Top
Walaa
Support Team



Location:

Joined on:
21-Aug-2005 16:03:48
Posted:
14639 posts
# Posted on: 02-Apr-2009 11:03:32.  
This might depend on the sequence of steps taken at Design time.

If you assign the entityCollection to the BindingSource after assignin the bindingsource to te grid, columns would not show.

Try doing the following on a new test webForm:
1- Drop an entityCollection on the Form.
2- Drop a bindingSource on the form.
3- Assign the collection to the bindingSource
4- Drop an MS Grid on the form.
5- Assign the bindingSource to the Grid.

Does the colums appear now?


  Top
pandu
User



Location:

Joined on:
18-May-2006 07:20:06
Posted:
86 posts
# Posted on: 03-Apr-2009 08:29:41.  
Yes. It does.

Thank you.
  Top
Pages: 1  


Powered by HnD ©2002-2007 Solutions Design
HnD uses LLBLGen Pro

Version: 2.1.12172008 Final.