Cannot edit childviews

Posted by: tosch on 8 September 2017, 1:05 pm EST

  • Posted 8 September 2017, 1:05 pm EST

    I have built a test app where I add child sheets to the rows in a spread. Parent/Child are not connected to a datasource.
    Only the childview in row 0 can be edited, the child views of all the other rows can't. I can't even click on the child views, the can't seem to receive focus.
    What could be the problem here?

    I'm using version 3.0.2007.2005

    Thomas
  • Replied 8 September 2017, 1:05 pm EST

    Scott, attached is my sample application.

    Thomas

    2008/03/Spread_Hierarchy_Unbound.zip
  • Replied 8 September 2017, 1:05 pm EST

    Thomas,


    It sounds like the custom SheetView objects are not being implemented correctly (especially the FindChildView and GetChildView override methods). Could you post some code you are using to implement this override methods?

  • Replied 8 September 2017, 1:05 pm EST

    Tosch,


    The FindChildViews method is not declared correctly. Here is the corrected code.

     
      Public Overrides Function FindChildView(ByVal row As Integer, ByVal relationIndex As Integer) As FarPoint.Win.Spread.SheetView
     
  • Replied 8 September 2017, 1:05 pm EST

    Scott,
    this does not fix the problem. I can still only edit the cells in the childview of row 0.

  • Replied 8 September 2017, 1:05 pm EST

    Hello,


    I was able to get your project to load and run now and I found the issue is not overriding the ParentRowIndex property in the child SheetView class (KstView)

     
      Public Overrides ReadOnly Property ParentRowIndex() As Integer
    Get
    Return CInt
    (SheetName)
    End Get
    End Property
     
  • Replied 8 September 2017, 1:05 pm EST

    works fine now, thanks for your help


Need extra support?

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

Learn More

Forum Channels