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
1510
AfterCellUpdate Event before UltraCombo has finished?
posted

Hi there,

I have a UltraCombo embedded in a UltraGrid ...

Does the AfterCellUpdate event for the UltraGrid fire before the value has been changed in the UltraCombo ?
I'm asking this because the this._ucEmployees.SelectedRow is NULL for the first time ( inside the AfterCellUpdate event ! ), after I've selected some value in the UltraCombo ...

The 2nd time I change some values, the this._ucEmployees.SelectedRow is NOT null anymore ... but the selected value :-/

rgd,
EE

Parents
  • 1510
    posted

    I tried to make the value of the SelectedRow NOT null with this ... ( see the TOP line )

     

     

     

     

     

     

    this

     

     

    ._ucEmployees.SelectedRow = e.Cell.Row;

    {

     

     

    this._employeeName = this._ucEmployees.SelectedRow.Cells["EmployeeName"

    ].Value.ToString();

     

     

    this._showEmployeeName = this

    ._employeeName;

     

     

    foreach (Month month in this

    ._displayMonths)

    {

     

     

    //Changing all aaocations to new employee

     

     

    int allocationId = System.Convert.ToInt32(allocationIds[this

    ._displayMonths.IndexOf(month)]);

     

     

    this

    .SaveAllocation(e.Cell.Row.Cells[month.MonthID.ToString()], employeeId, projectId, month.MonthID, allocationId);

    --------

    But I get this exception:
    System.ArgumentException: invalid row passed in RowScrollRegion.ScrollRowIntoView

    Why is the SelectedRow ( inside the AfterCellUpdate event inside the UltraGrid ! ) NULL in the UltraCombo null for the first time I select a row ?

Reply Children
No Data