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
455
is Grid data entry only (no edits) possible?
posted

Is it possible to make the grid data-entry only? and disable edits to existing rows?

I am adding new rows using a fixed template row at the bottom with an ADD button.

 

Thanks

Parents
  • 469350
    Verified Answer
    Offline posted

    You could try something like this:


            private void ultraGrid1_InitializeRow(object sender, InitializeRowEventArgs e)
            {
                if (e.Row.IsAddRow | e.Row.IsTemplateAddRow)
                    e.Row.Activation = Activation.AllowEdit;
                else
                    e.Row.Activation = Activation.NoEdit;
            }

            private void ultraGrid1_AfterRowUpdate(object sender, RowEventArgs e)
            {
                e.Row.Activation = Activation.NoEdit;
            }      

     

    This KB article might also help:  HOWTO:How can I make a grid or a column, row, or cell in the UltraWinGrid disabled or read-only?

Reply Children