Hi Haneef,
Thank you for your latest example, it works perfectly now, and after I enabled multi select and custom background selection color its still working perfectly. I now just need to review your code to workout how the custom engine actually works! ;-)
I would suggest that you add this example to your KB on how to implement multiple second level tables in a GGC.
Thanks again for all your time and effort on this.
Regards
John
>Hi John,
Thanks for you patience.
You can derive a GridChildTable as follows. This will give the result you need:
public class GroupingChildTable : GridChildTable, IGridGroupOptionsSource
{
public GroupingChildTable(Element parent):base(parent)
{}
public override int GetVisibleCount()
{
if( GetTableVisible())
return base.GetVisibleCount();
return 0;
}
public override double GetYAmountCount()
{
if( GetTableVisible())
return base.GetYAmountCount();
return 0;
}
public override double GetVisibleCustomCount()
{
if( GetTableVisible())
return base.GetVisibleCustomCount();
return 0;
}
private bool GetTableVisible()
{
if( this != null && this.Category != null
&& this.Category.ToString() != string.Empty)
{
if( int.Parse(this.Category.ToString())%2 == 0 )
{
if(this.ParentTableDescriptor.Name == "FirstChildTable")
return false;
}
else
{
if(this.ParentTableDescriptor.Name == "SecondChildTable")
return false;
}
}
return true;
}
}
Please refer to the modified attached sample for implementation.
CustomizedNestedTable.zipLet me know if this helps.
Best Regards,
Haneef