﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WinForms (How do I?)  » Infragistics UltraGrid - Error Provider not displaying</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sat, 19 Sep 2026 21:34:59 GMT</lastBuildDate><ttl>20</ttl><item><title>Infragistics UltraGrid - Error Provider not displaying</title><link>http://forum.strataframe.net/FindPost12165.aspx</link><description>The ultragrid doesn't seem to show the error provider (Red Indicators) beside the fields with broken rules.(I'm&amp;nbsp;testing required fields right now).&amp;nbsp; I am getting the 'broken rules exist' message box but not the error provider indicators on the problem fields.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I looked at the Business Binding Source example and it seems to work fine with the standard VS grid.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Is there something I need to set on the UltraGrid to get this working?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Tim</description><pubDate>Tue, 13 Nov 2007 11:49:29 GMT</pubDate><dc:creator>Tim Dol</dc:creator></item><item><title>RE: Infragistics UltraGrid - Error Provider not displaying</title><link>http://forum.strataframe.net/FindPost12672.aspx</link><description>This is called the Validating event of basically any control.&amp;nbsp; You can still implement this logic if you have the need.&amp;nbsp; As a side note, this is one of the options on when data will be updated back to the source OnValidation or OnPropertyChanged.&amp;nbsp; This is just FYI.&amp;nbsp; 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.&amp;nbsp; 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.&amp;nbsp; This is an older technology and is what we did in our legacy systems.&amp;nbsp; There are few instances where we force the user to enter a field before moving on any longer.&amp;nbsp; The only time we take this approach is if other fields will rely on a value from the current field.</description><pubDate>Tue, 13 Nov 2007 11:49:29 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Infragistics UltraGrid - Error Provider not displaying</title><link>http://forum.strataframe.net/FindPost12651.aspx</link><description>You could add an Event for the ItemChangingFocus( I dont know exact event handler name )&amp;nbsp;of a Control and check the rule then and not move the control.&amp;nbsp;&amp;nbsp; Has anyone implemented Field Level Checking versus Row Level Checking?&lt;/P&gt;&lt;P&gt;Richard&amp;nbsp;</description><pubDate>Tue, 13 Nov 2007 11:15:31 GMT</pubDate><dc:creator>Richard Keller</dc:creator></item><item><title>RE: Infragistics UltraGrid - Error Provider not displaying</title><link>http://forum.strataframe.net/FindPost12648.aspx</link><description>I have also tried in the past to prevent a user from leaving the current row when there are broken rules, I have not found a way to do so.&amp;nbsp; With the IBindingListView interface (what the grid binds to), the only way to tell that the user changed the record is to attach to the CurrencyManager for the list and handle the PositionChanged event.&amp;nbsp; When that event fires, the record has already changed and I have been unsuccessful at changing the position back to another record within that event handler.&lt;/P&gt;&lt;P&gt;As for why the broken rules dot properly display, are you having problems finding the ListObject to cast it, or are the broken rules not displaying on the grid once you call the CheckRulesOnCurrentRow()?&amp;nbsp; I don't have a sample at the moment because we don't ever have to actually talk to the ListObject in this scenario... we just let all of the broken rules show for the whole business object when Save() is called.</description><pubDate>Tue, 13 Nov 2007 11:12:11 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Infragistics UltraGrid - Error Provider not displaying</title><link>http://forum.strataframe.net/FindPost12494.aspx</link><description>Ben,&lt;/P&gt;&lt;P&gt;I'm not having any success with showing broken rules on the current row of the grid&amp;nbsp;or preventing the user from navigating away from the row until the broken rules are corrected.&lt;/P&gt;&lt;P&gt;Do you have an example of the code you are referring to in your post to cast the ListObject, plus any idea on how to prevent the user from changing rows until all the errors have been corrected?&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR&gt;Tim</description><pubDate>Tue, 06 Nov 2007 10:14:15 GMT</pubDate><dc:creator>Tim Dol</dc:creator></item><item><title>RE: Infragistics UltraGrid - Error Provider not displaying</title><link>http://forum.strataframe.net/FindPost12268.aspx</link><description>The UltraGridRow object has a property called (I think) ListObject.&amp;nbsp; This property returns the reference to the backing data object of the row.&amp;nbsp; So, if you're binding through a BBS, then the ListObject property will return a reference to the business object, and that business object reference will be on the right row.&amp;nbsp; So, I would say to try using the grid events, but instead of calling CheckRulesOnCurrentRow(True) on the BO that you dropped on the form, cast the ListObject property as your business object type and call the CheckRulesOnCurrentRow(True) on it instead.</description><pubDate>Tue, 30 Oct 2007 09:12:15 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Infragistics UltraGrid - Error Provider not displaying</title><link>http://forum.strataframe.net/FindPost12228.aspx</link><description>Hi Ben,&lt;/P&gt;&lt;P&gt;Grid.DisplayLayout.Override.SupportDataErrorInfo = RowsAndCells fixed my problem.&amp;nbsp; Thanks.&lt;/P&gt;&lt;P&gt;Where is the best place to have row validation checked with the UltraGrid?. The validations work fine when I save the business object but I want to implement row validation, similar to a form. I tried adding some logic in the B/O Navigating event using the condition &lt;FONT color=#ff1111&gt;if me.BO.checkRulesOnCurrentRow(True)...&lt;/FONT&gt; but it doesn't seem to fire consistantly, nor&amp;nbsp;does it display the errors, &amp;nbsp;when you navigate the grid.&amp;nbsp; I also tried using one of the Grid's events but the row indexes are not in sync with the business object so it make it tough to know if it's validating the correct information. &lt;/P&gt;&lt;P&gt;Any help would be great...&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;TIm</description><pubDate>Fri, 26 Oct 2007 14:44:47 GMT</pubDate><dc:creator>Tim Dol</dc:creator></item><item><title>RE: Infragistics UltraGrid - Error Provider not displaying</title><link>http://forum.strataframe.net/FindPost12186.aspx</link><description>I'm not sure what the defaults are for the properties, but on the UltraGrid, we changed these properties:&lt;/P&gt;&lt;P&gt;Grid.DisplayLayout.Override.SupportDataErrorInfo = RowsAndCells&lt;BR&gt;Grid.DisplayLayout.Override.DataErrorCellAppearance = {new appearance with .Image set to error icon}&lt;BR&gt;Grid.DisplayLayout.Override.DataErrorRowAppearance = {new appearance with .Image set to error icon}&lt;/P&gt;&lt;P&gt;You can also change the background or foreground color of those appearances to get the cells/rows to stand out if they have errors.</description><pubDate>Thu, 25 Oct 2007 09:22:45 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>