Hi, here is my code snippet when i used EditorControl
ultraGridCell.EditorControl = textEditor;
ultraGridCell.EditorControl.Name = propertyName;
and i am validating like this...
if (cell.EditorControl == null || !cell.EditorControl.Name.Equals(propertyName))
Now, i want to replace EditorControl with EditorComponent. How to implement the same functionality with EditorComponent.
Like I said, if you know it's always a Control, you can just cast it to Control.
Control editorControl = cell.EditorControl;
if (editorControl != null && editorControl.Name.Equals(propertyName))
Here is the code which i am using now:
if
(e.Cell.EditorControl != null)
{
e.Cell.EditorControl.Controls.Clear();
e.Cell.EditorControl =
null;
}
(cell.EditorControl == null || !cell.EditorControl.Name.Equals(propertyName))
cell.EditorControl = ultraTextEditor;
cell.EditorControl.Name = propertyName;
In the above code, i want to replace EditorControl with EditorComponent. How to do that?