How to get checkBox object from c# Xtragrid column
-
04-10-2019 - |
Pergunta
Hi all,
I'm using DevExpress XtraGrid control in a C#.Net application. I'mbinding the values from one table to a grid, 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.
Solução
You may use the gridView.ActiveEditor property to get a reference of the currently open editor. It is available within the CellValueChanged event handler.
Outras dicas
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.
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow