StrataFrame Forum

ListView in SF v.1.6.6 - AutoSortColumn - Very Delayed

http://forum.strataframe.net/Topic18397.aspx

By Rogerio Mauri - 8/10/2008

When the AutoColumSort property is adjusted for true the time of reading of the registers in the ListView is very delayed (20 seconds approx)Crying. Adjusted for false, the reading is very fast. I made the test with a table with 2444 registers.


ListView Properties:
===================
PopulateOnFormLoad: Manual
PopulateDataSourceSettings: DicCBOBO.CopyDataFrom(MicroFour.StrataFrame.Business.BusinessLayerBase,MicroFour.StrataFrame.Business.BusinessCloneDataType)
AutoColumSort: true


Configurations:
==============
Business Object Type: DicCBOBO
Method to Execute: CopyDataFrom(BusinessLayerBase, BusinessCloneDataType)
Display Fields:
    {0}CodCbo
    {1}DescricaoCbo
Columns:
    0 - Blank - FormattedString
    1 - {0}   - FormattedString
    2 - {1}   - FormattedString
TagField: IdCBO


Events:
======
private void listView2_ListPopulating(MicroFour.StrataFrame.UI.ListPopulatingEventArgs e)
{
    e.Parameters[0].Value = dicCBOBO1;
    e.Parameters[1].Value = MicroFour.StrataFrame.Business.BusinessCloneDataType.ClearAndFillFromDefaultView;
}


 
 

By Rogerio Mauri - 8/10/2008

Solved !!! BigGrin

The problem was in the code of the event ' RowPopulation'.
By Dustin Taylor - 8/11/2008

Awesome, glad you got it solved! BigGrin