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
460
TextBox at UltraGrid
posted

Hi All

I am adding UltraTextEditor to one of the GridColumn like 

 

UltraTextEditor emailEditor = new UltraTextEditor();

emailEditor. TextChanged  += new EventHandler(OnEdit);

void OnEdit(sender, e)

{

--------

}

ultraColumn.EditorControl = emailEditor;

 

since, i am placing text editor for the column, i expect anychange in editor OnEdit should get called...but this is not happening

 

Can any one please explain the concept behind?

 

Parents
  • 3565
    Verified Answer
    posted

    I believe the problem is that the grid creates it's own instances of a control associated with a grid column. So creating an event handler outside of the grid is not going to ever capture that change event. Technically you don't even really have to create a seperate text editor unless you are trying to do something out of the ordinary because the grid will create one by default if the source column is a text field. From the code you are showing it looks like you would be more inclined to use the cell events on the grid.

Reply Children