Does WPF DataGrid fire an event when a row is added / removed?

前端 未结 7 626
失恋的感觉
失恋的感觉 2021-02-06 05:48

I wish to recalculate things everytime a DataGrid gets more rows or some are removed. I tried to use the Loaded event, but that was fired only once.

I found

7条回答
  •  暖寄归人
    2021-02-06 06:44

    How about DataGrid.LoadingRow(object sender, DataGridRowEventArgs e)?

    Same for Unloading.

    DataGrid.UnLoadingRow(object sender, DataGridRowEventArgs e)?

提交回复
热议问题