Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
465
Use UltraGridCell.EditorComponent instead of EditorControl
posted

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. 

  • 469350
    Offline posted

    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))

  • 465
    posted

    By the way,

    ultraGridCell.EditorControl = textEditor; //here textEditor is UltraTextEditor control.