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
733
InitializeRow for FixedAddRow
posted

I have a fixed add row on the top of the grid.  In the initializerow event, I would like to know whether I am in the fixed add row or a regular row in the grid, so I can disable cell activation on a cellbutton column.  Checking isTemplateAddRow always returns false, and checking the index property (for index > 0) doesn't seem to work either.  Is there a way to do this?

 Thanks,

Bob

Parents
  • 30
    Offline posted

    Inside the InitializeRow event, you can add code similar to the following:

                 if ( !e.Row.IsAddRow )
                {
                    e.Row.Cells["Code"].Activation = Activation.Disabled;
                }

     Hope this helps.

     Chris

Reply Children