Yes, you're right FieldType is what you need...
There are no values in the runtime object, because you didn't set them. This
can be done via constructor ( you specify parameters for the constructor,
also this assumes that you have appropriate constructor with the same
parameter list).
calling with Object[] parameter = {}; is equivalent to
SQB.SQBDataprovider obj = new SQB.SQBDataprovider();
and Object[] par = new object[2] {"connstr", "other"};
is equivalent to
SQB.SQBDataprovider obj = new SQB.SQBDataprovider("connstr", "other");
Another way is to set them manually
sqbdp = o as SQB.SQBDataprovider;
sqbdp.ConnectionString = "somestring";
etc.
Also after sqbdp = o as SQB.SQBDataprovider;
you do not check for null, may result in NullRef Exception.

Signature
Vadym Stetsyak aka Vadmyst
http://vadmyst.blogspot.com
> Hi Vadym, thank you very much, I'm near the solution, but i have two
> questions.
[quoted text clipped - 34 lines]
>
> Thank you very much, I owe your beer ;)
layos - 22 Dec 2005 13:32 GMT
Thank you again :)
My requirement is exactly at this node. I'will create a Component Class
in wich my customers drag and drop only a SQBDataprovider object,
configure on it all parameters, and the pages automatically recreate
colones of this object at run time without other configuration and this
clones take them back well formed DataSets with data and structure.
Without any code written by customers.
The problem is, how can i select the right properties in the right
instance of dataprovider knowing the selection on the dropdown list?
Can i put the properties in the Fieldinfo[] array?
Is the right way in your opinion?
Many thanks again. :)

Signature
Layos
Vadym Stetsyak - 22 Dec 2005 14:07 GMT
If the code is executed in the runtime, that you will have to introduce some
persistance model ( save properties somewhere e.g. databse ) and when
instantiating you will retrieve them from database.
If it will be a component then it can generate code that will intialize it
with the settings input by users, no reflection.

Signature
Vadym Stetsyak aka Vadmyst
http://vadmyst.blogspot.com
> Thank you again :)
>
[quoted text clipped - 11 lines]
>
> Many thanks again. :)