Home Forums WPF controls Xceed DataGrid for WPF Cell changed event

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

    Hi

    I’m new to using the grid so I’m sure this is an easy question to answer but for the life of me i cannot work out how to do it.

    All i require is an event raising when thte ceontents of a cell have changed.
    I’ve searched the forum and looked at the samples but could not find the answer

    the closest i’ve seen is using a DependencyPropertyDescriptor, i’ve tried the following code
    <b>
    DependencyPropertyDescriptor desc = DependencyPropertyDescriptor.FromProperty(DataCell.ContentProperty, typeof(DataCell));

    desc.AddValueChanged(DataGrid, new EventHandler(ContentChangedHandler));

    void ContentChangedHandler(object sender, EventArgs e)
    {

    }
    </b>
    where DataGrid is the name of the DataGridControl but this doesn’t fire the event,
    please tell me what i am doing wrong..

    thanks in advance…

    Imported from legacy forums. Posted by Alan (had 2637 views)

    User (Old forums)
    Member
    Post count: 23064

    Hi,

     I am having the same issue – did anyone have an answer?

     I understand there are new events in v3.0 that add this functionality but as Express is yet to be moved to v3.0 a v2 work around would be very much appreciated.

     

     

     

     

    Imported from legacy forums. Posted by Phil (had 291 views)

    User (Old forums)
    Member
    Post count: 23064

    You are mixing the DataCell and the DataGrid.

    DependencyPropertyDescriptor desc = DependencyPropertyDescriptor.FromProperty(DataCell.ContentProperty, typeof(DataCell)); 

     desc.AddValueChanged(DataGrid, new EventHandler(ContentChangedHandler));

      Use the method described in our help documentation, and it should work.

    http://doc.xceedsoft.com/products/XceedWpfDataGrid/Creating%20a%20Value-changed%20Handler.html

     

    Imported from legacy forums. Posted by André (had 340 views)

    User (Old forums)
    Member
    Post count: 23064

    Many thanks – much appreciated.

    Imported from legacy forums. Posted by Phil (had 1028 views)

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