A
Angelos Karantzalis
Hi guys,
I've an Enumerator of object arrays that I need to display on a DataGrid.
Unfortunately, after I set the DataSource to the Enumerator, and call
DataBind(), the DataGrid picks up & displays the public properties of the
object[] instance
I'm not able to specify in advance how big the array will be, or what sort
of data is contained in it unfortunately, so I couldn't just create a
"wrapper" object around the array with public properties.
On the other hand, the grid displays a DataSet correctly, which doesn't have
pre-defined columns as well. So there must be a way to tell the DataGrid
both the column names, and how to read them from the "row" object ( my
object[] in this case ) but ... I've no idea how :?
Any pointers pls ?
Cheers,
Angel
O:]
I've an Enumerator of object arrays that I need to display on a DataGrid.
Unfortunately, after I set the DataSource to the Enumerator, and call
DataBind(), the DataGrid picks up & displays the public properties of the
object[] instance
I'm not able to specify in advance how big the array will be, or what sort
of data is contained in it unfortunately, so I couldn't just create a
"wrapper" object around the array with public properties.
On the other hand, the grid displays a DataSet correctly, which doesn't have
pre-defined columns as well. So there must be a way to tell the DataGrid
both the column names, and how to read them from the "row" object ( my
object[] in this case ) but ... I've no idea how :?
Any pointers pls ?
Cheers,
Angel
O:]