I want to display all my array data in a datagrid.
I already tried with 'datagrid1.datasource = myarray but the result i get is the lenght of the array data.
Also my array needs to be multidimensional and when i make that change i get an error on flexpendant saying the array was not unidimensional.
Any Ideas ?
Thanks and Merry Christmas:stuck_out_tongue_winking_eye:
To display a table in the System.Windows.Forms.DataGrid at run time, use the SetDataBinding method to set the DataSource and DataMember properties to a valid data source. The following data sources are valid:
are you using the RapidDataBindingSource object of FlexPendant SDK?
In the screenshot below you can see how I have bound a DataGrid to a RapidDataBindingSource which is listing one 2x2x2 num array and displaying its value in the “value” column. The entire value is displayed. (The grid was a bit to small so only the first elements of the array are visible)
My array looks like this:
VAR num numArray{2,2,2}:=[[[1,2],[1,2]],[[1,2],[1,2]]];
Is this what you want to do, or do you want to display the elements of a 2x2 array as rows and columns of the DataGrid?
(In that case I’m not sure how to do it, but before I’ll find out, I want to check with you).