Bind to Linq to Sql

6 posts, 0 answers
  1. Lorenzo Castrico
    Lorenzo Castrico avatar
    13 posts
    Member since:
    Jul 2007

    Posted 09 Aug 2008 Link to this post

    Hello,
    I tried different binding method with you gridview and i was able to make it work.
    I'd like to see a sample project(wpf web project) using this scenario:
    objectdataprovider using as datacontext a linqtosql class with the ability to update , delete and insert.

    Thanks
    Regards
  2. Milan
    Admin
    Milan avatar
    1989 posts

    Posted 12 Aug 2008 Link to this post

    Hello Vincenzo Casolani,

    I've created a sample project for you that demonstrates how to use LinqToSql with our RadGridView control.
    I've chosen to create the sample project as a standard WPF application since the limitations of Xbap applications would have made the sample too complicated and cumbersome to understand. The are quite a few comments in the sample that should aid you to quickly understand how to implement CRUD functionality using our grid control.

    Hope this helps.

    All the best,
    Milan
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Lorenzo Castrico
    Lorenzo Castrico avatar
    13 posts
    Member since:
    Jul 2007

    Posted 12 Aug 2008 Link to this post

    Thanx, the sample was very helpfull.
    I was able to implement your code in a wpf partial trust browser app.
    I submitted a support ticket with my project to help solve a bug i found

    Thanx again
    Regards
  5. Milan
    Admin
    Milan avatar
    1989 posts

    Posted 14 Aug 2008 Link to this post

    Hello Vincenzo Casolani,

    I'm glad that the sample was helpful. We will be looking into ticket you submitted.

    Regards,
    Milan
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  6. Kevin
    Kevin avatar
    26 posts
    Member since:
    Apr 2009

    Posted 18 Jul 2009 Link to this post

    Hi,

    I could not get this project to work. I am using 2009 Q2, not sure if this is why it is failing.

    I to need a sample of a WPF app showing how to bind to a table in an SQL database also allowing inserts, update and deletes.

    I have tried a number of methods to achieve this but they seem very long winded or I just could not get them to work.

    Your sample looks very light from a code so would be keen to get this going to see how it works.

    Cheers in advance...

    Kevin.

    PS. The errors I am getting are:

    Error 1 The type or namespace name 'UI' does not exist in the namespace 'Telerik.Windows.Controls' (are you missing an assembly reference?) C:\Work\Temp\096083_LinqToSql\LinqToSql\LinqToSql\Window1.xaml.cs 89 84 LinqToSql

    Error 2 The type or namespace name 'UI' does not exist in the namespace 'Telerik.Windows.Controls' (are you missing an assembly reference?) C:\Work\Temp\096083_LinqToSql\LinqToSql\LinqToSql\Window1.xaml.cs 104 85 LinqToSql

    Error 3 Cannot find the type 'local:DataProvider'. Note that type names are case sensitive. Line 10 Position 54. C:\Work\Temp\096083_LinqToSql\LinqToSql\LinqToSql\Window1.xaml 10 54 LinqToSql

  7. Stefan Dobrev
    Admin
    Stefan Dobrev avatar
    790 posts

    Posted 23 Jul 2009 Link to this post

    Hello Kevin,

    I'm attaching an updated version of this example. It includes ViewModel for RadGridView and also a stripped version of the Prism's DelegateCommand. Hope you will find it useful.

    Greetings,
    Stefan Dobrev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top
UI for WPF is Visual Studio 2017 Ready