Hi,
I have an ultragrid. On click of the row of the grid, a group box will be enabled. When the groupbox is enabled, I need the grid as ReadOnly(not disable). Can any one tell me how to achive this.
ThanksMithilesh
Hello Mithilesh,
As it is state in the article you could set the following in order to have the desired behavior, as I have modified it a little to be closer to your expectations:
void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { e.Layout.Override.AllowUpdate = Infragistics.Win.DefaultableBoolean.False; e.Layout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.CellSelect; }
Please feel free to let me know if you still have any other questions with this matter.
Hi Danko,
Thanks for the response.I tried deactivating the column using
this.ultraGrid1.DisplayLayout.Bands[0].Columns[0].CellActivation = Activation.Disabled;
But it actually Deactivated the grid. The grid became gray. But what I need is to make it ReadOnly so that the user will not be able to select/activate any record. not Deactivate the grid.
Mithilesh
May be you could find out the answer to this question at the following link :
http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=6156
Please let me know if you still need any other assistance with this matter.