Welcome to the Xceed Community | Help
Community Search  
More Search Options

DataGridControl.CurrentColumn changed

Sort Posts: Previous Next
  •  04-22-2009, 3:34 PM Post no. 20473

    DataGridControl.CurrentColumn changed

    Good Afternoon!

        I'm using version 3.1 of the DataGrid for WPF.  I have an issue where I need a TextBox editor to commit it's changes to the datasource when the user exits the current cell (which works when DataGridControl.UpdateSourceTrigger = DataGridUpdateSourceTrigger.CellEndingEdit), but I also need a checkbox editor to commit it's changes to the datasource as soon as the user clicks on the checkbox (which works when DataGridControl.UpdateSourceTrigger = DataGridUpdateSourceTrigger.CellContentChanged). 

       The only way I imagine this situation working is if I dynamically set the UpdateSourceTrigger property of the datagrid when the current column changes.  However, the DataGridControl.CurrentColumn is not a dependency property, so I can't add a value changed handler to it.  There doesn't appear to be any sort of event that would help me accomplish what I'm looking for either.

     Have any ideas what would help me accomplish what I'm trying to do?  Any examples would help!

  •  05-21-2009, 1:29 PM Post no. 21102 in reply to 20473

    Re: DataGridControl.CurrentColumn changed

    Hi Robert,

    CurrentColumn is not a DP, but it is a CLR property whose change notification will be received through the grid's PropertyChanged event.


    ** Quick Tip: Clients with an active support subscription should be sending their questions by email if they wish to benefit from the faster response time. Thanks!


    Diane Lafontaine
    Technical Support
    Xceed Software Inc.
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.