开发者

Context-sensitive GridLookUpEdit

I'm using DevExpress's GridLookUpEdit control in a grid and I want t开发者_如何转开发he contents of the pop-up grid to change depending on some other values in the row that is being edited.

I thought that I could use the advBandedGridView1_ShowingEditor event handler to change the DataView for the GridLookupEdit, but I can't figure out how to get the values in the current row in that handler. e.RowHandle is not available, so I can't use view.GetDataRow(e.RowHandle).

Firstly - is this handler this best place set the context-sensitive contents of the GridLookupEdit?

Second - how can I get the current row's data from this handler?

tia -


You should use the view.GetDataRow(view.FocusedRowHandle) to determine the DataRow object corresponding to the row being edited. Also, I would suggest that you use the GridView's ShownEditor event and set the properties of the gridView.ActiveEditor object. I think that the How to filter a second LookUp column based on a first LookUp column's value article should be helpful to you.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜