开发者

How to get checkBox object from c# Xtragrid column

Hi all, I'm using DevExpress XtraGrid control in a C#.Net application. I'mbinding the values from one table to a gri开发者_JAVA百科d, and the table contains one bit field: Authorized. So the grid displays that column with a checkBox. I want to get that checkBox object or get the event of that control.

How to get checkBox  object from c# Xtragrid column


You may use the gridView.ActiveEditor property to get a reference of the currently open editor. It is available within the CellValueChanged event handler.


Why don't you try using the CellValueChanged or CellValueChanging events tied to the view? You can use the IDE's property list to wire it up and inside the event use the event args to decide which column you wish to act upon.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜