views:

46

answers:

2

Hai all, Am using DevExpress XtraGrid control in C#.Net application.And binding one table values to grid,that table contain one bit field ("Authorized") so grid displaying with bit field column having checkBox.I want to get that checkBox object or get the event of that control.

alt text

A: 

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.

Jamie Altizer
@Jamie Altizer: in CellValueChanged not getting that checkbox object.
Vyas
But isn't the value changing the same as the checkbox being checked or not? I would argue it is the same, the checkbox is just a visual representation of 1 or 0. A down vote would be acceptable if I offered you my answer but you gave more reason for needing an entire checkbox object other than to test a value change via the checked property.
Jamie Altizer
@Jamie Altizer:CheckBox event not occuring while CellValueChanged .But getting in Itemarray object of selected row.I meant that checkBox control to be get
Vyas
+1  A: 

Hi,

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

DevExpress Team