Posted 31 May 2022, 12:54 pm EST
Hi. How I can obtan values in childgrid (using rowdetailrovider) just like a normal grid (ej. C1FlexGrid(C1FlexGrid.Row, C1FlexGrid.Col)
Forums Home / ComponentOne / WinForms Edition
Posted by: irvingcruz211079 on 31 May 2022, 12:54 pm EST
Posted 31 May 2022, 12:54 pm EST
Hi. How I can obtan values in childgrid (using rowdetailrovider) just like a normal grid (ej. C1FlexGrid(C1FlexGrid.Row, C1FlexGrid.Col)
Posted 1 June 2022, 3:40 am EST
Hi,
Accessing the cell value from the Child Grid like a normal C1FlexGrid is not directly possible. You will need to fetch the values manually by using the relation in the DataSource of your Parent Grid.
Kindly refer to the attached sample showing an implementation of the same, in which we have created a custom FlexGrid RowDetail by inheriting the C1FlexGridRowDetail class to get the Row and Col of the child grid and then fetching the required data from the DataSource of the parent grid.
Kind Regards,
Kartik