在cxGrid表格中如何获得当前列的字段名
var GridDBTableView:TcxGridDBTableView; ColIndex:Integer; FieldName:string; GridDBTableView := TcxGridDBTableView(TcxGridSite(TcxButtonEdit(Sender).Parent).ViewInfo.GridView); ColIndex := TcxGridTableController(TcxGridSite(TcxButtonEdit(Sender).Parent).ViewInfo.GridView.Controller).FocusedColumn.Index; FieldName := GridDBTableView.Columns[ColIndex].DataBinding.FieldName;
https://bbs.csdn.net/topics/391828565