I am using a ComboEditor as a drop down in a cell. I have used this control before. I do not what the user to be able to type anything in the textbox part of the drop down. When its not in a grid I can mark the drop down style to DropDownList. When I tried it on the grid, it does not work.
Any thoughts?
Hello,
In order to simulate the same behavior in the UltraGrid you should set the style of the desired column (the one that you are assinging the UltraComboEditor to) like:
e.Layout.Bands[0].Columns["Desired One"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList;Please let me know if you have any other questions with this matter.
I have the following lines in the InitializaeLayout function.
e.Layout.Bands[
this._perpetualInventoryAdjustmentTDS.PerpetualInventoryAdjustment.TableName].Columns[this._perpetualInventoryAdjustmentTDS.PerpetualInventoryAdjustment.TransactionTypeDescriptionColumn.ColumnName].EditorComponent = this.cmbTransactionType;
e.Layout.Band[
this._perpetualInventoryAdjustmentTDS.PerpetualInventoryAdjustment.TableName].Columns[this._perpetualInventoryAdjustmentTDS.PerpetualInventoryAdjustment.TransactionTypeDescriptionColumn.ColumnName].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList;
When I load the grid, I can still type in the column that I want to be a DropDownList.