简体   繁体   English

Telerik WPF RadGridView CellEditEnded事件问题

[英]Telerik WPF RadGridView CellEditEnded event issue

I am using Telerik RadGridView for WPF to display the data. 我正在使用Telerik RadGridView for WPF显示数据。

My requirement is when I end up changing a value in one of the columns then update the data of different columns of same row. 我的要求是,当我最终更改其中一列的值,然后更新同一行不同列的数据时。

I am using CellEditEnded event to calculate and update other cell's value. 我正在使用CellEditEnded事件来计算和更新其他单元格的值。

This works when I set the focus to any other cell of different row but if I click somewhere in the cells of same row, it does not update values. 当我将焦点设置到不同行的任何其他单元格时,此方法有效,但是如果单击同一行的单元格中的某个位置,它将不会更新值。

Found the solution. 找到了解决方案。 Just added grid.Items.CommitEdit(). 刚刚添加了grid.Items.CommitEdit()。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM