in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Issues with Cols(n).ImageAlign and e.Col

Last post 12-11-2007 5:53 PM by C1_GregL. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 09-06-2007 4:01 PM

    Issues with Cols(n).ImageAlign and e.Col

     We are looking at upgrading to C1FlexGrid 2.6.20072.329. During testing, we observed the two issues below:

    1.  Setting Cols("DEL").ImageAlign = ImageAlignEnum.CenterTop causes rows to increase their heights when .AutoSizeRows(...) is called even when text wrapping is not activated on any of the grid's columns. The rows maintain the correct heights when ImageAlignEnum.CenterCenter is used.

    2.  In using the grdData.CellChanged() event, e.Col = -1 in all instances. We are using e.Col to compare it against the index of column to determine if the style of a row is to be changed. Since e.Col is always -1, the comparison fails and the style is never changed.

    I have a ZIP file containing the items below. It is about 240KB and the file attachment feature of the forum has a 64KB limit. Let me know where I could send the ZIP to.

    ImageAlign.DOC - illustrates problem #1 in more detail
    CellChanged.DOC - illustrates problem #2 in more detail
    ComponentOne project recreating the above problems
  • 09-14-2007 3:48 PM In reply to

    • C1_GregL
    • Top 10 Contributor
    • Joined on 06-11-2007
    • Pittsburgh PA
    • Posts 498

    Re: Issues with Cols(n).ImageAlign and e.Col

    Thank you for the sample! it's very good and I can tell you put great effort into it.

    1) This looks like a bug.  The issue does not happen with old versions, such as from 2006.  So I am submitting this to the developer for a fix, and i'll respond here when it's available.

    2) I was not able to reproduce this error with version 2.6.20072.339.  It behaved like you describe it should (the column index was correct, not -1, and the rows became yellow).
    I recommend trying it yourself with this version which is available from our prerelease site:
    http://prerelease.componentone.com/dotnet20/c1flexgrid/2007-t2/C1FlexGrid2_2.6.20072.339.zip

    Thanks,
    Greg L

     

  • 09-17-2007 12:34 PM In reply to

    Re: Issues with Cols(n).ImageAlign and e.Col

    Item 2 has fix in 2.6.20072.339. We will wait for item 1 resolution before we start using the new control.

    Thanks. 

  • 10-18-2007 11:45 AM In reply to

    Re: Issues with Cols(n).ImageAlign and e.Col

     Any news on the fix for item 1?

    Thanks.

  • 12-11-2007 5:53 PM In reply to

    • C1_GregL
    • Top 10 Contributor
    • Joined on 06-11-2007
    • Pittsburgh PA
    • Posts 498

    Re: Issues with Cols(n).ImageAlign and e.Col

    This bug was fixed and is included in the latest release (T307).

    http://prerelease.componentone.com/dotnet20/c1flexgrid/2007-t3/C1FlexGrid.2_2.6.20073.357.zip

     

    Regards,
    Greg L

Page 1 of 1 (5 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.