Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
605
possible to get underlying objects from cell in xampivotgrid?
posted

Hi, I'm using a FlatDataSource in a xampivotgrid and I'm trying to implement a use case where the user can select a cell and click a button to initiate some business logic in my application.  My business logic will require accessing all the underlying objects that make up the sum in the ActiveCell.  It could be just 1 object or many of course, depending on the cell and the hierarchy the user has created.

Parents
No Data
Reply
  • 8831
    posted

    Hello,

    In v11.1 there are two methods exposed by FlatDataSource you can use. Here is a sample:

     

        List<int> itemsIndexes = flatDataSource.GetCellItemsIndexes(ICell);

     

        foreach (int itemIndex in itemsIndexes)

        {

            object dataItem = flatDataSource.GetRecord(itemIndex);

        }

     

    I hope this will cover just what you need.

    Also if you are interested in please note that in v11.1 you can implement and apply your custom aggregators as well.

     

    Best regards.

    PPilev.

Children