I am setting the editor property on a grid cell so I can show a combo box. My question is how can I retrieve the grid cell object from the editor? I am using the BeforeDropDown event on the combo and it's firing, but I would like to know if the combo is in a grid or a stand-alone combo on my form.
Hello rehemann,
What I could suggest is using the BeforeCellListDropDown event from the UltraGrid control and check if the editor is your combo box and if so decide what you would like to happen following the code snippet below:
private void ultraGrid1_BeforeCellListDropDown(object sender, Infragistics.Win.UltraWinGrid.CancelableCellEventArgs e) { e.Cell.EditorResolved.... }
Please let me if this approach will suit your requirements.