Hi I have one ultragrid which contains checkbox column, I used the following code to disable this column, but it did not work. The checkbox column was grayed but still can check or uncheck the checkbox in the column. ultraGrid1.DisplayLayout.Bands[0].Columns["checkboxcolumnName"].CellActivation = Activation.Disabled; I want to gray this column, also could not check or uncheck the checkbox in the column. Could you please help on this? Thanks a lot.
Hello purpleCrystal,
Thank you for the provided feedback.
If you have any other questions please feel free to let us know.
Hi Danko Valkov,
Thanks for your quick reply. I double checked my codes and found that ultraGrid1_MouseClick event set the cell value of checkbox column to true or false, so the checkbox was checked or unchecked.
I check whether this cell is disabled in ultraGrid1_MouseClick event, if this cell is disabled,do not change the cell value, so checkbox's value will not be changed.
Hello PurpleCrystal,
I have tried this approach and it works fine for me. I have handled the InitializeLayout event of the UltraGrid and set the the cellActivation there, and I the cells become grayed out and I am not able to click over any of the cells:
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { e.Layout.Bands[0].Columns["bool"].CellActivation = Infragistics.Win.UltraWinGrid.Activation.Disabled; }