Hi,
I am using ultra grid to show different records, each record type has a different string length validation I need to validate each row in a separate mechanism meaning the Name field for one record should have a length limit different then Name field of another record.
I can see the text limitation for a column but how can I do it per cell?
Thanks
Koby
You could do this by assigning a different UltraTextEditor instance to each of the cells that has a different max length requirement, and setting the control's MaxLength property accordingly. Personally I would handle BeforeExitEditMode, cast the sender parameter to type EmbeddableEditorBase, and use the EmbeddableEditorBase.CurrentEditText property to determine the string length of the editor's value. Then set the Cancel property of the event arguments based on whether the length requirement is satisfied.
How do I assign UltraTextEditor to each one of the cell?
Koby.
In the second option you suggest I am preventing the user from leaving the cell, In my case I am required to show an error icon indicating a problem.
I'll wait for your answer as per the assigning UltraTextEditor to each cell, Many thanks
Thanks.
Brian,
Thanks. before I go with your personal recommendation I wonder how can one attach a UltraTextEditor to a cell, I saw that only in the column level.