How to show array values as columns in a datagrid

  • Thread starter Thread starter mavrick_101
  • Start date Start date
M

mavrick_101

Hi,

Sorry for this stupid question. I'm trying to set up number of columns based
on the values in a string array.

for example I have this array:
string[] tmpArray = commaSeperatedStringValues.split(',');

DataGrid.DataSource=tmpArray;
DataGrid.Bound();

When I do this, all the elements in the array are shown as rows in a signle
column...

Pls help.
 
Hi,

Sorry for this stupid question. I'm trying to set up number of columns based
on the values in a string array.

for example I have this array:
string[] tmpArray = commaSeperatedStringValues.split(',');

DataGrid.DataSource=tmpArray;
DataGrid.Bound();

When I do this, all the elements in the array are shown as rows in a signle
column...

Pls help.

Hi Mavrick,

You may want to try with Multi-dimensional arrays instead.

Thanks,
Rajeev
 
Back
Top