RadGridView + CommitEdit + CancelRowEdit

1 posts, 0 answers
  1. ITA
    ITA avatar
    383 posts
    Member since:
    Aug 2009

    Posted 20 Feb 2012 Link to this post

    hi,

    i'm using RadgridView to display my Databaseitems from a sqlite Database. I bind the Data like that:

    DataTable dt = new DataTable();
    dt = ITA_CRM.Klassen.sqlite.Verbindungen_GET();
    MyradGrid.ItemsSource = dt.DefaultView;

    Now i want to insert Items, Delete itmes and change items. I would like to use the "telerikGrid:RadGridViewCommands.CancelRowEdit" or
    telerikGrid:RadGridViewCommands.CommitEdit"

    <telerik:RadButton Width="Auto" Content="save changes" Margin="0,0,5,0" Command="telerikGrid:RadGridViewCommands.CommitEdit" CommandTarget="{Binding ElementName=VerbindungenRADGRID}" Padding="5"/>
     
     <telerik:RadButton Width="Auto" Content="undo changes" Command="telerikGrid:RadGridViewCommands.CancelRowEdit" CommandTarget="{Binding ElementName=VerbindungenRADGRID}"  Padding="5"/>

    Is it the right why? Is it better to bind the Data on an other way? how? Can't find a good example to do that.

    Thanks a lot
    regards
    ww
Back to Top