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
2690
Editable cell
posted

Is it possible to make a cell editable while in add new row mode and make readonly when its in Edit row cell

 

  • 21382
    Suggested Answer
    posted

    You don't need to allow cell editing for the add new row to work, so if the only row that will allow entry is the add new row, just don't turn on editing for the grid.

     

    Otherwise you could simply put a check in the CellEnteringEditMode and check the e.Cell.Row.RowType to see if it's a RowType.DataRow and if it is set the e.Cancel event to true.