Step 1) i have UltraTextEditor control. on that i added UltraExplorerTree like below-
UltraTextEditor.ButtonsRight.Add(new DropDownEditorButton("FolderTree")); ((DropDownEditorButton)UltraPlantArea.ButtonsRight["FolderTree"]).Control = UltraExplorerTree;
step 2) Now on grid column i assigned grid column Editorcontrol property to UltraplantArea.
grid.DisplayLayout.Bands[0].Columns["col1"].EditorControl = ultraTextEditor;
grid.DisplayLayout.Bands[0].Columns["Col1"].ButtonDisplayStyle = Infragistics.Win.UltraWinGrid.ButtonDisplayStyle.Always; //grid.DisplayLayout.Bands[0].Columns["Co1"].CellActivation = Activation.NoEdit; grid.DisplayLayout.Bands[0].Columns["Col1"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList;
PlatArea is displyed after click on dropdownlist , but i m facing 2 problem-
1)I ned to double click on dropdown list after that only i can c utratextEditor data
2) Cell is Editble. I want non editable.
For that i tried to add key down event of ultraPlan but it never get fired.
Pls suggest any other solution.
Thanks
Hello jyoti p,
A possible approach to achieve that, would be to use the 'ButtonDisplayStyle' and the 'CellActivation' enumerations, like in the following example:
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { DropDownEditorButton myButton = new DropDownEditorButton(); myButton.Control= ultraExplorerBar1; this.ultraTextEditor1.ButtonsRight.Add(myButton); e.Layout.Bands[0].Columns[0].EditorComponent = ultraTextEditor1; e.Layout.Bands[0].Columns[0].CellActivation = Infragistics.Win.UltraWinGrid.Activation.ActivateOnly; e.Layout.Bands[0].Columns[0].ButtonDisplayStyle = Infragistics.Win.UltraWinGrid.ButtonDisplayStyle.Always; }
Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) {
DropDownEditorButton myButton = new DropDownEditorButton();
myButton.Control= ultraExplorerBar1; this.ultraTextEditor1.ButtonsRight.Add(myButton);
e.Layout.Bands[0].Columns[0].EditorComponent = ultraTextEditor1;
e.Layout.Bands[0].Columns[0].CellActivation = Infragistics.Win.UltraWinGrid.Activation.ActivateOnly;
e.Layout.Bands[0].Columns[0].ButtonDisplayStyle = Infragistics.Win.UltraWinGrid.ButtonDisplayStyle.Always;
}
Please also take a look at the attached sample and let me know if that sample suits your requirements.
hello Kaloyan Chipilev,
Thank you for solution. Its woking now :)