Hi,
I'm using 2010 Volume 2 for Windows Forms. I'm trying to use the winvalidator to validate a cell is not empty. Is there an example on how to use the winvalidator for cell objects?
Thank you,
Steve Ellis
UltraTextEditor ute = new UltraTextEditor();ValidationSettings vs = this.validator.GetValidationSettings( ute );vs.IsRequired = true;this.grid.DisplayLayout.Bands[0].Columns["LastName"].EditorComponent = ute;
Hi Brian,
I probably did not explain my issue well. I have a wingrid on a form. I want to use ultravalidator to validate the input Grid.DisplayLayout.Band(0) .column("Last Name"). Let's say I want to make sure it's required for entry.
Can you give me an example (code) how to accomplish that?
Thank you for your help.
You can put an UltraTextEditor and an UltraValidator on the same form as the grid, set the properties on the ValidationSettings object which appears for the UltraTextEditor (in your case IsRequired = true), then assign that UltraTextEditor to the EditorComponent property of the desired column.