Posted 27 December 2018, 8:56 am EST
Is there a direct way to create a Datatable from the data in an unbound FlexGrid without looping through and “manually” adding each row?
Forums Home / ComponentOne / WinForms Edition
Posted by: kroy on 27 December 2018, 8:56 am EST
Posted 27 December 2018, 8:56 am EST
Is there a direct way to create a Datatable from the data in an unbound FlexGrid without looping through and “manually” adding each row?
Posted 28 December 2018, 1:40 am EST
Hi,
No, there is no direct method to convert unbound FlexGrid’s data to a DataTable. An unbound grid does not need to specify any restrictions on the columns (its DataType, column name, its uniqueness, etc.) which are needed in a DataTable.
You will need to loop through the rows and cells to add them to a DataTable.
Regards,
Jitender