Hi Fabio La Vitola,
AfterDataRefresh event from a C1FlexGrid is not raised depending on how many rows are created. It gets fired whenever there is a change in the used DataSource.
You can get the number of rows added in the grid using c1FlexPivotPage.FlexPivotGrid.Rows.Count property. It will return the number of rows that are currently available in the C1FlexGrid of C1FlexPivotPage.
Hope it helps.
i did noticed the difference beteww the two kinda AfterDataRefresh (Pivot has the event parametrr "e as ListChangedEventArgs), but i need to know how may rows are available only after the rows creation process is finished.
I nee somthing synchronous, otherwise i cannot identify the point to insert my code, which expects data fill has finished.
That's why i did mention the AfterDataRefresh from standard FlexGrid.
I suggest to add something like "DataComplete = 8" in the ListChangedType enum of the e.ListChangedType; this new value (another raise) will advice about the competion of pivot rows creation!
Anyway, checking c1FlexPivotPage.FlexPivotGrid.Rows.Count (i.e. into AfterDataRefresh event) won't help 'cause when i add totals/subtotals, then grid is regenerated and raises every time an incremental row number.
I need (and i think I won't be the only one) to know when exaclty the parsing and rendering of pivot rows into the FlexPivotGrid is completed: int his case i'll be able to go on with other code (i.e. in my case, an advanced report generation).
Hoping that i've been clear enough!