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
550
Validate Cell When Another Cell Is Updated
posted

I am trying to force validation on cell 2 when cell1 is validated or changed.  I tried using the EditModeEnded event and then

grdTransfers.ActiveRecord

as DataRecord).Cells[2]

but I dont know how to get to the editor and force validation.

  • 550
    Verified Answer
    posted

    I figured this out.  In the editmode ended handler I used the folllowing code:

    Cell

     

    cell = (grdTransfers.ActiveRecord as DataRecord).Cells[sCellName];

     

    CellValuePresenter cvp = CellValuePresenter.FromCell(cell);

    cvp.Editor.ValidateCurrentValue();