Home Forums WPF controls Xceed DataGrid for WPF Editing DataGrid

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

    Hi,
    Please I have an urgent question
    i want to handle the events raised by editing in the data grid
    ( i.e i want to override BeginEdit and EndEdit in DataRow Class i think )..

    i just want to override end edit in order to update in a file

    Imported from legacy forums. Posted by hesham (had 2266 views)

    Xceed Support
    Member
    Post count: 5658

    <code>

    public MyCustomDataRow : DataRow
    {
    public override void EndEdit()
    {
    base.EndEdit();

    //Do your stuff here
    }
    }

    //You need to do this so your custom data row is used instead of the base one.
    public MyCustomDataGridControl : DataGridControl
    {
    protected override DependencyObject GetContainerForItemOverride()
    {
    return new MyCustomDataRow();
    }
    }
    </code>

    Imported from legacy forums. Posted by Marcus [Xceed] (had 3467 views)

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