Hmm get the idea but can't seem to get it quite right ... here is what
I have
public struct VmsData
{
public byte VmsID;
public double Volt1;
public double Volt2;
public double Volt3;
public double Volt4;
public int CycleCounter;
public int OTPCounter;
public int OVPCounter;
public int LVPCounter;
public double Temperature;
public bool Alive;
public int tries;
}
public VmsData [] VmsArray = new VmsData[256];
but when I try and point the datasource to VmsArray all I see is
VmsData when I try and do the binding using the data source
configuration wizard.
cheers
Mark
On Sep 21, 5:56 pm, Andrew Badera <[email protected]> wrote:
> You can populate grids with arrays and lists. Anything that's
> IEnumerable I believe. Try pointing the grid.DataSource = yourArray or
> yourArrayAsAList<T>.
>
> ∞ Andy Badera
> ∞ +1 518-641-1280
> ∞ This email is: [ ] bloggable [x] ask first [ ] private
> ∞ Google me:http://www.google.com/search?q=andrew%20badera
>
>
>
> On Mon, Sep 21, 2009 at 10:19 AM, Markarina <[email protected]> wrote:
>
> > I'm sure it's very simple to do, but coming from an embedded micro
> > background I'm not fully up to speed with all the various controls.
> > Anyway I'm populating a structure array with data I get from
> > interoggating a serial device, and want to display the elements of the
> > structure in a grid on the form, each structure element having it's
> > own cell and each array element being on a new row, so essentially a
> > table
>
> > The only grid controls I have found seem to require a datasource, and
> > the table controls I have found seem only to hold collections of
> > controls.
>
> > More simply put I want to display a 2-d array in a table.
>
> > sorry for the dumb question
>
> > Mark