Datagrid and Array loading
-
I have an array of mixed data Integer and string in a variable array I wish to pass to a datagrid, but all the information I find reletes to the use of datagrids with Datasets and datatables. Is it possible to pass data from a two dimensional Array to a replicated image in a datagrid ie col1, rwo 1 to col1 row 1? I'm really new at this. Can anyone help? Dim X as single Public Dat_Arr(1, 20)as variantType me.DataGrid1.DataSource.= Dat_Arr???? DPF
-
I have an array of mixed data Integer and string in a variable array I wish to pass to a datagrid, but all the information I find reletes to the use of datagrids with Datasets and datatables. Is it possible to pass data from a two dimensional Array to a replicated image in a datagrid ie col1, rwo 1 to col1 row 1? I'm really new at this. Can anyone help? Dim X as single Public Dat_Arr(1, 20)as variantType me.DataGrid1.DataSource.= Dat_Arr???? DPF
Are you looking for:
DataGrid1.DataSource = Dat_Arr
You'd much better off moving your data to a DataTable object. You'll get alot more flexibility. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
Are you looking for:
DataGrid1.DataSource = Dat_Arr
You'd much better off moving your data to a DataTable object. You'll get alot more flexibility. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome