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
440
CellListSelect
posted

Hi

I read a recent post regarding CellListChange and CellListSelect. But it didn't solve my problem.

I have a drop down list in a grid (different contents on each row.) When the user selects a value from the list it should immediately fire an event that I can use to derive a value to place in another cell on the same row. E.g. select a drug and calculate the correct dose for the given patient...

What event do I look for - both CellListChange and CellListSelect will not fire until the focus switches to a different row or an object not on the grid.

 Any ideas?

Thanks

Jerry

Parents
No Data
Reply
  • 17259
    Offline posted

    Use RowInitialize. This way you'll also cover the initial binding, not only selection by user.

    If you want to fire this event when the user select and not wait for the focus losing, write this:

    private void Grid_AfterCellListCloseUp(object sender, CellEventArgs e)

    {

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

          PerformAction(UltraGridAction.ExitEditMode);

    }

Children