C1 Community
ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

InputPanel and Binding to ADO.Net Entity Framework Object

rated by 0 users
This post has 2 Replies | 0 Followers

Not Ranked
Posts 7
parnold Posted: Wed, Apr 22 2009 7:22 AM

Hi,

I am trying to bind the Input Panel to an ADO.Net Entity Framework datasource.

However, the Input panel does not auto add all of the necessary controls.  It seems to omit controls for nullable datatypes. I.e. Int?, DateTime? etc.

I have tried this at both runtime and design time.

======================== 

I.e. RUNTIME CODE

// Model is an ADO.Net Entity Data Model connecting to a SQL Server 2000/2005 database. 

 Model _myModel = new Model();

// Select all items from the Items in the Model. 

var items = from item in _myModel.Items select item;

// Create new input panel and set datasource.

C1InputPanel panel = new C1InputPanel();

BindingSource bindingSource = new BindingSource();

bindingSource.DataSource = items;

panel.DataSource = bindingSource;

 

        

 

Top 10 Contributor
Posts 1,644
Thank you for pointing this out. The problem will be addressed
at the earliest opportunity.

Regards,

-Andrey
Not Ranked
Posts 7
parnold replied on Thu, Apr 23 2009 4:25 AM
Thanks for responding so quickly.
Page 1 of 1 (3 items) | RSS
Contact ComponentOne: 1.800.858.2739 ©1987-2010 ComponentOne LLC All Rights Reserved.