Jump to content
Software FX Community

Can I bind to anything other than ADO.NET?


User (Legacy)

Recommended Posts

You can bind to an array of built-in types (single, double, int, etc.)

You can also bind to an array, arraylist (or other collections) of a class

but we do not have established a mechanism for you to tell us which

properties should be used. The current implementation will read all the

properties so if your object is simple will work e.g.

class Account {

// private implementation

public double CurrentValue {

get {

return m_dValue;

}

set {

// private code

}

}

}

if your object has a lot of public properties your chart will be created

with many series that you probably don't want. We should be fixing this in

the near future, in the meantime you can always use our API to pass the

data, e.g.

int i = 0;

chart.OpenData(COD.Values,1,(int) COD.Unknown);

foreach(MyObject obj in myArray) {

chart.Value[i] = obj.GetMyProperty;

i++;

}

chart.CloseData(COD.Values);

--

Regards

JC

Software FX Support

"0to60" <holeshot60.nospam@yahoo.com> wrote in message

news:Zye14GzrBHA.1412@webserver1.softwarefx.com...

> I have an array of classes. Can I bind to this?

>

>

>

Link to comment
Share on other sites

You can bind to an array of built-in types (single, double, int, etc.)

You can also bind to an array, arraylist (or other collections) of a class

but we do not have established a mechanism for you to tell us which

properties should be used. The current implementation will read all the

properties so if your object is simple will work e.g.

class Account {

// private implementation

public double CurrentValue {

get {

return m_dValue;

}

set {

// private code

}

}

}

if your object has a lot of public properties your chart will be created

with many series that you probably don't want. We should be fixing this in

the near future, in the meantime you can always use our API to pass the

data, e.g.

int i = 0;

chart.OpenData(COD.Values,1,(int) COD.Unknown);

foreach(MyObject obj in myArray) {

chart.Value[i] = obj.GetMyProperty;

i++;

}

chart.CloseData(COD.Values);

--

Regards

JC

Software FX Support

"0to60" <holeshot60.nospam@yahoo.com> wrote in message

news:Zye14GzrBHA.1412@webserver1.softwarefx.com...

> I have an array of classes. Can I bind to this?

>

>

>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...