【发布时间】:2014-06-02 09:36:42
【问题描述】:
我想从 PivotGridControl 中获取选定的行值(我使用的是 DevExpress v13.1)。
通过下面的代码RowValue 返回最里面的值,但我想获取特定的字段值。 RowValue2 返回 null。
Point FCell = pivotGridControl1.Cells.FocusedCell;
PivotCellEventArgs CellInfo = pivotGridControl1.Cells.GetCellInfo(FCell.X, FCell.Y);
object RowValue = CellInfo.GetFieldValue(CellInfo.RowField);
object RowValue2 = CellInfo.GetCellValue(fieldItemCode);
FocusedCellChanged 事件也不会触发。
【问题讨论】:
-
请阅读如何提问。你至少应该提供一些信息来帮助你。提供一些代码,你得到了什么异常?
标签: .net winforms devexpress