Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
4133
How Do I Get The Cell From The Editor?
posted

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.

 

  • 20872
    Verified Answer
    Offline posted

    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.