ActiveRow invalid in Models.Selection.Changed event handler (V6)

Posted by: ruehmer on 8 September 2017, 2:58 pm EST

  • Posted 8 September 2017, 2:58 pm EST

    Hi there,

    accessing the <font color="#0000cc" face="courier new,courier">fpSpread.ActiveSheetView.ActiveRow</font> property within the <font color="#0000cc" face="courier new,courier">fpSpread.ActiveSheetView.Models.Selection.Changed</font> event handler works until one sets <font color="#0000cc" face="courier new,courier">fpSpread.ActiveSheetView.RowCount = 0</font> which instantaneously fires the event, where the access to <font color="#0000cc" face="courier new,courier">ActiveRow</font> throws an<font face="courier new,courier"><font color="#0000cc">IndexOutOfRangeException</font></font> (when a cell has been selected before setting <font color="#0000cc" face="courier new,courier">RowCount</font>).

    In V2 this has been not the case (<font color="#0000cc" face="courier new,courier">ActiveRow == null</font> instead).

    Thanks,
    Dany

  • Replied 8 September 2017, 2:58 pm EST

    Hello,

    I am working on your query. I will get back to you soon.

    Thanks,

    Manpreet Kaur

  • Replied 8 September 2017, 2:58 pm EST

    Hello,

    I was able to replicate the issue at my end and it seems to be a bug. I have reported it to the development team and the bug number for the same is <span class="dlgtitle">#99926530</span><span class="lockmsg">. It would be fixed in the next maintenance release.</span>

    Thanks,

    Manpreet Kaur

  • Replied 8 September 2017, 2:58 pm EST

    Hi,

    thank you.

    Dany

  • Replied 8 September 2017, 2:58 pm EST

    Hello,

    I would like you to know that bug number <span class="dlgtitle">#99926530</span> has been fixed in the next service pack of Spread which is expected to be released in early December this year. You can download the same from the following link as soon as it is released:

                                   http://www.gcpowertools.com/DownloadLatestVersion

    Hope it will help you.

    Thanks,

    Manpreet Kaur

  • Replied 8 September 2017, 2:58 pm EST

    Hi Manpreet,

    thank you for the information.  I'll try it out then...

    Cheers,
    Dany

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels