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

RadGridView + CommitEdit + CancelRowEdit

0 Answers 155 Views
GridView
This is a migrated thread and some comments may be shown as answers.
ITA
Top achievements
Rank 1
ITA asked on 20 Feb 2012, 10:22 AM
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

No answers yet. Maybe you can help?

Tags
GridView
Asked by
ITA
Top achievements
Rank 1
Share this question
or