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
620
auto expand ultradropdown when clicking cell
posted

I have a grid in which i have a ultradropdown with a valuelist attached to it. Everything works fine. However, I would like to expand the dropdown when entering the cell in the wingrid. Is there anyway i can do that programatically?

Parents
No Data
Reply
  • 69832
    Verified Answer
    Offline posted

    this.ultraGrid.AfterEnterEditMode += new EventHandler(this.ultraGrid_AfterEnterEditMode);

    private void ultraGrid_AfterEnterEditMode(object sender, EventArgs e)
    {
        UltraGrid control = sender as UltraGrid;
        UltraGridCell cell = control.ActiveCell;

        if ( cell.Column.Key == "whatever" )
            cell.EditorResolved.DropDown();
    }

Children