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