Home Forums WPF controls Xceed DataGrid for WPF EndEdit handler for backend db update

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #24413 |

    Sorry for the naive question but I cannot find a sample and I’m a little confused about event handling for the grid: I have a datagrid bound to a database table (in turn derived from a backend database). I can see from the databinding sample how editing is done in memory (in a dataset or the like), but I’d like to see a few XAML lines to declare the function to be called to update my backend-database whenever user has ended the row edit: i.e. how I declare in XAML the event handler for EndEdit at the row level? In this group I’ve found samples like this inline style:

    <xcdg:DataGridControl.Resources>
    <Style TargetType=”{x:Type xcdg:DataRow}”>
    <EventSetter Event=”…some event” Handler=”…event handler”/>
    </Style>
    </xcdg:DataGridControl.Resources>

    but there is no such “EndEdit” event to put in the setter…

    Imported from legacy forums. Posted by Mathetes (had 514 views)

    Xceed Support
    Member
    Post count: 5658

    You can derive from Row (or DataRow) and override the EndEdit method to do what you would like after a row has been edited.

    Imported from legacy forums. Posted by Jenny [Xceed] (had 2727 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.