1) How do I make some cells readonly and same not under the same column?
2) I have set to a column a ReadOnly flag to true, the column is readonly however after the click on readonly the cell, the editbox is still displayed. I want readonly cells to do nothing when they are clicked. How to do that?
Thx for answer
Viktor
This KB article should help
HOWTO:How can I make a grid or a column, row, or cell in the UltraWinGrid disabled or read-only?
Viktor,
1) You could use the InitializeRow to set the Activation property on a cell to NoEdit, i.e.:
private void ultraGrid1_InitializeRow(object sender, Infragistics.Win.UltraWinGrid.InitializeRowEventArgs e){ e.Row.Cells[0].Activation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;}
2) Which flag are you referring to? An UltraGridColumn doesn't have a ReadOnly property. As mentioned above, you can try using the Activation property to prevent editing in that column.
-Matt