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.
When you go to the row's Band property, you're affecting that band for all rows, not just the row you're editing.
The following thread provides information to achieve the result I believe you're after, by setting the Activation of each row instead of each column:http://forums.infragistics.com/forums/p/15903/58152.aspx#58152
Thanks, I wil try this.