我在XtraGrid中定義了以下列。該列包含強制用戶選擇3個選項之一的下拉菜單。每次用戶更改下拉列表的值時,如何連線一個事件?如何在XtraGrid GridColumn中添加事件?
this.myCol.AppearanceCell.Options.UseTextOptions = true;
this.myCol.AppearanceCell.TextOptions.HAlignment =
DevExpress.Utils.HorzAlignment.Near;
this.myCol.Caption = "My Caption";
this.myCol.ColumnEdit = this._myRepositoryLookup;
this.myCol.FieldName = "MyFieldName";
this.myCol.Name = "myId";
this.myCol.Visible = true;
this.myCol.VisibleIndex = 5;
this.myCol.Width = 252;