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.
Hello ,
Could you please verify that your band (using the above index) and column (using the above key) are not getting changed in run time?
Maybe something overrides those settings after that. What you could try is using this code snippet in a event handler of a button, after that UltraGrid is loaded, just to verify what would be the behavior after that.
If you have any other questions please feel free to ask.
You are correct. I did have it overwritting somewhere else.. Thanks, that helped ALOT!!!!
I am glad that you were able to solve your issue.
If you have any questions in the future please feel free to contact us.