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
210
DropDownList in UltraWinGrid
posted

Hi,

One column of my grid has the style ColumnStyle.DropDownList and it works well apart from one situation.  If a user clicks on one of these cells and picks a value in the dropdownlist but does not click on another cell, the value is not commited.  So when I call this.ultraGrid1.Rows[ i ].Cells[ PICKLIST_COL_NO ].Value  null is returned rather than the value the user selected.

Is there any way to have the selected value commited as soon as the user selects the item in the picklist so that our code can get his selected value without requiring him to click on another cell and so stop editing that cell?

Thanks

Andy

Parents
No Data
Reply
  • 17259
    Offline posted

    This will work if the user select an item from the list:

     

     

    private

     

    void Grid_AfterCellListCloseUp(object sender, CellEventArgs e)

    {

     

     

    if (e.Cell.StyleResolved == Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList)

    grid.PerformAction(

    UltraGridAction.ExitEditMode);

    }

    but if the user is typing (if you allow this), I think you need to use CellChange.

Children