﻿<?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 » Business Objects and Data Access (How do I?)  » Program Flow Question</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 01:15:04 GMT</lastBuildDate><ttl>20</ttl><item><title>Program Flow Question</title><link>http://forum.strataframe.net/FindPost2426.aspx</link><description>I've got the previously mentioned grid and bo with 24 rows of data.&lt;br&gt;
&lt;br&gt;
How come this get sequence is called over 100 times while populating a 24 row grid?&lt;br&gt;
&lt;br&gt;
        private class Field_OccurrenceValue_Descriptor : MicroFour.StrataFrame.Business.FieldPropertyDescriptor&lt;br&gt;
        {&lt;br&gt;
            public Field_OccurrenceValue_Descriptor() : base("OccurrenceValue") { }&lt;br&gt;
            private System.Type _PropertyType = typeof(System.Int32);&lt;br&gt;
            public override object GetValue(Object component)&lt;br&gt;
            {&lt;br&gt;
                return ((ResultDefs)component).OccurrenceValue;&lt;br&gt;
            }&lt;br&gt;
&lt;br&gt;
        public System.Guid ResultDefId&lt;br&gt;
        {&lt;br&gt;
            get&lt;br&gt;
            {&lt;br&gt;
                return (System.Guid)this.CurrentRow["ResultDefId"];&lt;br&gt;
            }&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Thank you,&lt;br&gt;
Dan</description><pubDate>Thu, 24 Aug 2006 14:08:25 GMT</pubDate><dc:creator>Daniel Essin</dc:creator></item><item><title>RE: Program Flow Question</title><link>http://forum.strataframe.net/FindPost2445.aspx</link><description>Hehe, no, that wouldn't be much fun :)</description><pubDate>Thu, 24 Aug 2006 14:08:25 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Program Flow Question</title><link>http://forum.strataframe.net/FindPost2440.aspx</link><description>oh. I guess it's a good idea not to try to step this process in the debugger without a robotic finger to hit the F11 key 1200 times.</description><pubDate>Thu, 24 Aug 2006 13:53:54 GMT</pubDate><dc:creator>Daniel Essin</dc:creator></item><item><title>RE: Program Flow Question</title><link>http://forum.strataframe.net/FindPost2431.aspx</link><description>Because of the way that a grid paints.&amp;nbsp; Each time the grid paints the cell, it has to access the value through the property descriptor for the column, and the column is accessed by each row within the grid.&amp;nbsp; My only guess is that the grid is accessing the property several times for each row to test on formatting and spacing before actually drawing the value for the column.&amp;nbsp; That's why we use the property descriptors rather than allowing .NET to create ReflectDescriptor objects for each property visible in the grid... if we didn't have the property descriptors, then .NET would be reflecting 100 times for each column, each time the grid paints.</description><pubDate>Thu, 24 Aug 2006 08:52:52 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>