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
205
UltraWinGrid - How to make a specific row editmode while rest of the rows readonly
posted

Hi,

I have UltraWinGrid. When I first retreive records from database I make all the cells as readonly except one cell where user can change. Now, when I want user to add a new record, the whole new rows should be active with no cells as readonly. How do I do that.

 This is  how I am making cell readonly in the grid InitializeLayout event.

e.Layout.Bands[0].Columns["Name"].CellActivation = Activation.NoEdit;

 and  in the add button, I was doing this

         this.grd_Admin.Rows.Band.AddNew();
         UltraGridRow o_Row;
         o_Row = this.grd_Admin.ActiveRow;

         o_Row.Band.Columns["Name"].CellActivation = Activation.AllowEdit;

but this makes all other rows editable also. What I want only the new row will be editable and all the other rows cells as readonly except one cell as before.

 Thanks

SandyDoss.

Parents
No Data
Reply Children