mirek,
This isn't easy. While Array implements IList, the grid will reflect on
the properties of each value in the array, which in turn are another array
(which is a jagged array).
In order to get around this, you will want to create a class which
implements ICustomTypeDescriptor, or a class which has properties that map
to the horizontal dimension of your array. Then, create these classes, and
assign the values to each instance (each instance is a row). You will then
have an array of these, which you can pass to the data grid.
Your other option is to create a data set, and populate it manually, and
then bind to that.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"mirek" <mi***@auto.cz> wrote in message
news:OF**************@TK2MSFTNGP15.phx.gbl...
Hello,
is there a way how to create data view (via datagrid) of a 2dim. array?
I've data which I've got via SOAP call - it is a customer list, I want to
simply
display it in an datagrid. Can someone point me to an example how to do
it?
thanx
Mirek