Infragistics UltraGrid - Error Provider not displaying


Author
Message
Tim Dol
Tim Dol
Advanced StrataFrame User (666 reputation)Advanced StrataFrame User (666 reputation)Advanced StrataFrame User (666 reputation)Advanced StrataFrame User (666 reputation)Advanced StrataFrame User (666 reputation)Advanced StrataFrame User (666 reputation)Advanced StrataFrame User (666 reputation)Advanced StrataFrame User (666 reputation)Advanced StrataFrame User (666 reputation)
Group: Forum Members
Posts: 340, Visits: 1.4K
The ultragrid doesn't seem to show the error provider (Red Indicators) beside the fields with broken rules.(I'm testing required fields right now).  I am getting the 'broken rules exist' message box but not the error provider indicators on the problem fields. 

I looked at the Business Binding Source example and it seems to work fine with the standard VS grid. 

Is there something I need to set on the UltraGrid to get this working?

Thanks

Tim

Replies
Richard Keller
Richard Keller
StrataFrame User (174 reputation)StrataFrame User (174 reputation)StrataFrame User (174 reputation)StrataFrame User (174 reputation)StrataFrame User (174 reputation)StrataFrame User (174 reputation)StrataFrame User (174 reputation)StrataFrame User (174 reputation)StrataFrame User (174 reputation)
Group: Forum Members
Posts: 84, Visits: 324
You could add an Event for the ItemChangingFocus( I dont know exact event handler name ) of a Control and check the rule then and not move the control.   Has anyone implemented Field Level Checking versus Row Level Checking?

Richard 

Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
This is called the Validating event of basically any control.  You can still implement this logic if you have the need.  As a side note, this is one of the options on when data will be updated back to the source OnValidation or OnPropertyChanged.  This is just FYI.  As for placing logic within a control to prevent the focus from being changed, you can handle or overwrite the OnValidating or OnLeave or something alone those lines to force validation before exiting.  Obviously, this will have to be handled within your code as the entire purpose of a BO business logic is to provide all of this at once versus on a field by field basis as you tab through.  This is an older technology and is what we did in our legacy systems.  There are few instances where we force the user to enter a field before moving on any longer.  The only time we take this approach is if other fields will rely on a value from the current field.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search