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
240
Adding new records to UltraWinGrid
posted

Hi all,

Is it possible to allow only Add New records without allowing updation using UltraWinGrid? ie, allow to add new entries in grid. Once the record is added, don't allow it to be edited. Again it should allow to add new records. Also don't allow editing of already existing rows.

Parents
No Data
Reply
  • 5520
    Suggested Answer
    posted

    try this solution on the BeforeRowActivate Event

     

     private void ultraGrid1_BeforeRowActivate(object sender, Infragistics.Win.UltraWinGrid.RowEventArgs e)

            {

                if (e.Row.IsAddRow)

                    ultraGrid1.DisplayLayout.Override.AllowUpdate = Infragistics.Win.DefaultableBoolean.True;

                else

                    ultraGrid1.DisplayLayout.Override.AllowUpdate = Infragistics.Win.DefaultableBoolean.False;

            }

Children
No Data