This is a migrated thread and some comments may be shown as answers.

Design time schema and data with WPF and EF

1 Answer 55 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Scott Buchanan
Top achievements
Rank 1
Scott Buchanan asked on 19 Dec 2013, 02:41 PM

Greetings!  I have been in SQL world for the last few years,  When I last worked with on a Windows project, I used WInForms with Grids, DataSources, DataAdapters, etc.  Working with a grid was easy - there was a design-time "wizard" interface to select columns from the data source, set the size, styles, and other attributes and upon exiting the design interface it emitted the code on the form. 


Now, I am in VS2012, with a WPF project.  I have RadControls for WPF v2013.3.1204.45.  The data is SQL CE 4.0 and I have created an EF model for it.  On my first window, I added a RadGridView and cannot figure out how to connect it to my data at design time.  I can go into the code-behind and set ItemsSource to a LINQ query - so at runt-time I get a grid (with all columns, not well styled).



1. Is there such a design-time interface in RadControls for WPF (specifically the GridView)?  I can't believe everyone is really doing all of this by hand (either in designer or code-behind) - there are so many attributes that can be set (who wants to memorize all the row style properties)?



2. How do I bind the data source so I can see the schema (and maybe sample data?!) at design time?  I tried a RadEntityFrameworkDataSource but just couldn't figure out the syntax (yes, I looked at the demos - they assume a lot of knowledge).  I know have a lot to learn with EF, but I thought I would have an easy time with the controls...



Best,

Scott



1 Answer, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 24 Dec 2013, 01:57 PM
Hi Scott,

Generally, you can use Visual Studio's Properties Window in order to view and change the design-time properties and events of selected objects. You can check the attached image for a reference.

As for you other question:

I would suggest you to check our getting started section in the online documentation as it provides some easy to follow step by step guides on how to quickly get started with RadGridView and RadEntityFrameworkDataSource controls.


Regards,
Yoan
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
GridView
Asked by
Scott Buchanan
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Share this question
or